com.itextpdf.text.log
Class NoOpLogger

java.lang.Object
  extended by com.itextpdf.text.log.NoOpLogger
All Implemented Interfaces:
Logger

public final class NoOpLogger
extends Object
implements Logger

The no-operation logger, it does nothing with the received logging statements. And returns false by default for isLogging(Level)

Author:
redlab_b

Constructor Summary
NoOpLogger()
           
 
Method Summary
 void debug(String message)
          Log a debug message.
 void error(String message)
          Log an error message.
 void error(String message, Exception e)
          Log an error message and exception.
 Logger getLogger(Class<?> name)
           
 Logger getLogger(String name)
           
 void info(String message)
          Log an info message.
 boolean isLogging(Level level)
           
 void trace(String message)
          Log a trace message.
 void warn(String message)
          Log a warning message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpLogger

public NoOpLogger()
Method Detail

getLogger

public Logger getLogger(Class<?> name)
Specified by:
getLogger in interface Logger
Returns:
the logger for the given klass

warn

public void warn(String message)
Description copied from interface: Logger
Log a warning message.

Specified by:
warn in interface Logger

trace

public void trace(String message)
Description copied from interface: Logger
Log a trace message.

Specified by:
trace in interface Logger

debug

public void debug(String message)
Description copied from interface: Logger
Log a debug message.

Specified by:
debug in interface Logger

info

public void info(String message)
Description copied from interface: Logger
Log an info message.

Specified by:
info in interface Logger

error

public void error(String message,
                  Exception e)
Description copied from interface: Logger
Log an error message and exception.

Specified by:
error in interface Logger

isLogging

public boolean isLogging(Level level)
Specified by:
isLogging in interface Logger
Returns:
true if there should be logged for the given level

error

public void error(String message)
Description copied from interface: Logger
Log an error message.

Specified by:
error in interface Logger

getLogger

public Logger getLogger(String name)
Specified by:
getLogger in interface Logger


Copyright © 2013. All Rights Reserved.