org.jboss.logging
Class NullLoggerPlugin

java.lang.Object
  extended by org.jboss.logging.NullLoggerPlugin
All Implemented Interfaces:
LoggerPlugin

public class NullLoggerPlugin
extends Object
implements LoggerPlugin

LoggerPlugin implementation producing no output at all. Used for client side logging when no log4j.jar is available on the classpath.

Version:
$Revision: 2081 $
Author:
Sacha Labourey.
See Also:
Logger, LoggerPlugin

Constructor Summary
NullLoggerPlugin()
           
 
Method Summary
 void debug(Object message)
          Issue a log msg with a level of DEBUG.
 void debug(Object message, Throwable t)
          Issue a log msg and throwable with a level of DEBUG.
 void error(Object message)
          Issue a log msg with a level of ERROR.
 void error(Object message, Throwable t)
          Issue a log msg and throwable with a level of ERROR.
 void fatal(Object message)
          Issue a log msg with a level of FATAL.
 void fatal(Object message, Throwable t)
          Issue a log msg and throwable with a level of FATAL.
 void info(Object message)
          Issue a log msg with a level of INFO.
 void info(Object message, Throwable t)
          Issue a log msg and throwable with a level of INFO.
 void init(String name)
          Initialise the logger with the given name
 boolean isDebugEnabled()
          Check to see if the DEBUG level is enabled for this logger.
 boolean isInfoEnabled()
          Check to see if the INFO level is enabled for this logger.
 boolean isTraceEnabled()
          Check to see if the TRACE level is enabled for this logger.
 void trace(Object message)
          Issue a log msg with a level of TRACE.
 void trace(Object message, Throwable t)
          Issue a log msg and throwable with a level of TRACE.
 void warn(Object message)
          Issue a log msg with a level of WARN.
 void warn(Object message, Throwable t)
          Issue a log msg and throwable with a level of WARN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLoggerPlugin

public NullLoggerPlugin()
Method Detail

init

public void init(String name)
Description copied from interface: LoggerPlugin
Initialise the logger with the given name

Specified by:
init in interface LoggerPlugin
Parameters:
name - the name

isTraceEnabled

public boolean isTraceEnabled()
Description copied from interface: LoggerPlugin
Check to see if the TRACE level is enabled for this logger.

Specified by:
isTraceEnabled in interface LoggerPlugin
Returns:
true if a LoggerPlugin.trace(Object) method invocation would pass the msg to the configured appenders, false otherwise.

trace

public void trace(Object message)
Description copied from interface: LoggerPlugin
Issue a log msg with a level of TRACE.

Specified by:
trace in interface LoggerPlugin
Parameters:
message - the message

trace

public void trace(Object message,
                  Throwable t)
Description copied from interface: LoggerPlugin
Issue a log msg and throwable with a level of TRACE.

Specified by:
trace in interface LoggerPlugin
Parameters:
message - the message
t - the throwable

isDebugEnabled

public boolean isDebugEnabled()
Description copied from interface: LoggerPlugin
Check to see if the DEBUG level is enabled for this logger.

Specified by:
isDebugEnabled in interface LoggerPlugin
Returns:
true if a LoggerPlugin.trace(Object) method invocation would pass the msg to the configured appenders, false otherwise.

debug

public void debug(Object message)
Description copied from interface: LoggerPlugin
Issue a log msg with a level of DEBUG.

Specified by:
debug in interface LoggerPlugin
Parameters:
message - the message

debug

public void debug(Object message,
                  Throwable t)
Description copied from interface: LoggerPlugin
Issue a log msg and throwable with a level of DEBUG.

Specified by:
debug in interface LoggerPlugin
Parameters:
message - the message
t - the throwable

isInfoEnabled

public boolean isInfoEnabled()
Description copied from interface: LoggerPlugin
Check to see if the INFO level is enabled for this logger.

Specified by:
isInfoEnabled in interface LoggerPlugin
Returns:
true if a LoggerPlugin.info(Object) method invocation would pass the msg to the configured appenders, false otherwise.

info

public void info(Object message)
Description copied from interface: LoggerPlugin
Issue a log msg with a level of INFO.

Specified by:
info in interface LoggerPlugin
Parameters:
message - the message

info

public void info(Object message,
                 Throwable t)
Description copied from interface: LoggerPlugin
Issue a log msg and throwable with a level of INFO.

Specified by:
info in interface LoggerPlugin
Parameters:
message - the message
t - the throwable

error

public void error(Object message)
Description copied from interface: LoggerPlugin
Issue a log msg with a level of ERROR.

Specified by:
error in interface LoggerPlugin
Parameters:
message - the message

error

public void error(Object message,
                  Throwable t)
Description copied from interface: LoggerPlugin
Issue a log msg and throwable with a level of ERROR.

Specified by:
error in interface LoggerPlugin
Parameters:
message - the message
t - the throwable

fatal

public void fatal(Object message)
Description copied from interface: LoggerPlugin
Issue a log msg with a level of FATAL.

Specified by:
fatal in interface LoggerPlugin
Parameters:
message - the message

fatal

public void fatal(Object message,
                  Throwable t)
Description copied from interface: LoggerPlugin
Issue a log msg and throwable with a level of FATAL.

Specified by:
fatal in interface LoggerPlugin
Parameters:
message - the message
t - the throwable

warn

public void warn(Object message)
Description copied from interface: LoggerPlugin
Issue a log msg with a level of WARN.

Specified by:
warn in interface LoggerPlugin
Parameters:
message - the message

warn

public void warn(Object message,
                 Throwable t)
Description copied from interface: LoggerPlugin
Issue a log msg and throwable with a level of WARN.

Specified by:
warn in interface LoggerPlugin
Parameters:
message - the message
t - the throwable


Copyright © 2009 JBoss Inc.. All Rights Reserved.