org.jboss.logging
Interface LoggerPlugin

All Known Implementing Classes:
NullLoggerPlugin

public interface LoggerPlugin

Defines a "pluggable" login module. In fact, this is only used to split between log4j and /dev/null. Choice is made in org.jboss.logging.Logger

Version:
$Revision: 2081 $
Author:
Sacha Labourey.
See Also:
Logger, 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()
          Deprecated. DEBUG is for low volume logging, you don't need this
 boolean isInfoEnabled()
          Deprecated. INFO is for low volume information, you don't need this
 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.
 

Method Detail

init

void init(String name)
Initialise the logger with the given name

Parameters:
name - the name

isTraceEnabled

boolean isTraceEnabled()
Check to see if the TRACE level is enabled for this logger.

Returns:
true if a trace(Object) method invocation would pass the msg to the configured appenders, false otherwise.

trace

void trace(Object message)
Issue a log msg with a level of TRACE.

Parameters:
message - the message

trace

void trace(Object message,
           Throwable t)
Issue a log msg and throwable with a level of TRACE.

Parameters:
message - the message
t - the throwable

isDebugEnabled

boolean isDebugEnabled()
Deprecated. DEBUG is for low volume logging, you don't need this

Check to see if the DEBUG level is enabled for this logger.

Returns:
true if a trace(Object) method invocation would pass the msg to the configured appenders, false otherwise.

debug

void debug(Object message)
Issue a log msg with a level of DEBUG.

Parameters:
message - the message

debug

void debug(Object message,
           Throwable t)
Issue a log msg and throwable with a level of DEBUG.

Parameters:
message - the message
t - the throwable

isInfoEnabled

boolean isInfoEnabled()
Deprecated. INFO is for low volume information, you don't need this

Check to see if the INFO level is enabled for this logger.

Returns:
true if a info(Object) method invocation would pass the msg to the configured appenders, false otherwise.

info

void info(Object message)
Issue a log msg with a level of INFO.

Parameters:
message - the message

info

void info(Object message,
          Throwable t)
Issue a log msg and throwable with a level of INFO.

Parameters:
message - the message
t - the throwable

warn

void warn(Object message)
Issue a log msg with a level of WARN.

Parameters:
message - the message

warn

void warn(Object message,
          Throwable t)
Issue a log msg and throwable with a level of WARN.

Parameters:
message - the message
t - the throwable

error

void error(Object message)
Issue a log msg with a level of ERROR.

Parameters:
message - the message

error

void error(Object message,
           Throwable t)
Issue a log msg and throwable with a level of ERROR.

Parameters:
message - the message
t - the throwable

fatal

void fatal(Object message)
Issue a log msg with a level of FATAL.

Parameters:
message - the message

fatal

void fatal(Object message,
           Throwable t)
Issue a log msg and throwable with a level of FATAL.

Parameters:
message - the message
t - the throwable


Copyright © 2009 JBoss Inc.. All Rights Reserved.