org.apache.logging.log4j
Interface Logger

All Known Implementing Classes:
AbstractLogger, AbstractLoggerWrapper, StatusLogger

public interface Logger

This is the central interface in the log4j package. Most logging operations, except configuration, are done through this interface.


Method Summary
 void catching(Level level, Throwable t)
          Log an exception or error that has been caught.
 void catching(Throwable t)
          Log an exception or error that has been caught.
 void debug(Marker marker, Message msg)
          Log a message with the specific Marker at the DEBUG level.
 void debug(Marker marker, Message msg, Throwable t)
          Log a message with the specific Marker at the DEBUG level.
 void debug(Marker marker, Object message)
          Log a message object with the DEBUG level.
 void debug(Marker marker, Object message, Throwable t)
          Log a message at the DEBUG level including the stack trace of the Throwablet passed as parameter.
 void debug(Marker marker, String message)
          Log a message object with the DEBUG level.
 void debug(Marker marker, String message, Object... params)
          Log a message with parameters at the DEBUG level.
 void debug(Marker marker, String message, Throwable t)
          Log a message at the DEBUG level including the stack trace of the Throwablet passed as parameter.
 void debug(Message msg)
          Log a message with the specific Marker at the DEBUG level.
 void debug(Message msg, Throwable t)
          Log a message with the specific Marker at the DEBUG level.
 void debug(Object message)
          Log a message object with the DEBUG level.
 void debug(Object message, Throwable t)
          Log a message at the DEBUG level including the stack trace of the Throwablet passed as parameter.
 void debug(String message)
          Log a message object with the DEBUG level.
 void debug(String message, Object... params)
          Log a message with parameters at the DEBUG level.
 void debug(String message, Throwable t)
          Log a message at the DEBUG level including the stack trace of the Throwablet passed as parameter.
 void entry()
          Log entry to a method.
 void entry(Object... params)
          Log entry to a method.
 void error(Marker marker, Message msg)
          Log a message with the specific Marker at the ERROR level.
 void error(Marker marker, Message msg, Throwable t)
          Log a message with the specific Marker at the ERROR level.
 void error(Marker marker, Object message)
          Log a message object with the ERROR level.
 void error(Marker marker, Object message, Throwable t)
          Log a message at the ERROR level including the stack trace of the Throwablet passed as parameter.
 void error(Marker marker, String message)
          Log a message object with the ERROR level.
 void error(Marker marker, String message, Object... params)
          Log a message with parameters at the ERROR level.
 void error(Marker marker, String message, Throwable t)
          Log a message at the ERROR level including the stack trace of the Throwablet passed as parameter.
 void error(Message msg)
          Log a message with the specific Marker at the ERROR level.
 void error(Message msg, Throwable t)
          Log a message with the specific Marker at the ERROR level.
 void error(Object message)
          Log a message object with the ERROR level.
 void error(Object message, Throwable t)
          Log a message at the ERROR level including the stack trace of the Throwablet passed as parameter.
 void error(String message)
          Log a message object with the ERROR level.
 void error(String message, Object... params)
          Log a message with parameters at the ERROR level.
 void error(String message, Throwable t)
          Log a message at the ERROR level including the stack trace of the Throwablet passed as parameter.
 void exit()
          Log exit from a method.
<R> R
exit(R result)
          Log exiting from a method with the result.
 void fatal(Marker marker, Message msg)
          Log a message with the specific Marker at the FATAL level.
 void fatal(Marker marker, Message msg, Throwable t)
          Log a message with the specific Marker at the FATAL level.
 void fatal(Marker marker, Object message)
          Log a message object with the FATAL level.
 void fatal(Marker marker, Object message, Throwable t)
          Log a message at the FATAL level including the stack trace of the Throwablet passed as parameter.
 void fatal(Marker marker, String message)
          Log a message object with the FATAL level.
 void fatal(Marker marker, String message, Object... params)
          Log a message with parameters at the FATAL level.
 void fatal(Marker marker, String message, Throwable t)
          Log a message at the FATAL level including the stack trace of the Throwablet passed as parameter.
 void fatal(Message msg)
          Log a message with the specific Marker at the FATAL level.
 void fatal(Message msg, Throwable t)
          Log a message with the specific Marker at the FATAL level.
 void fatal(Object message)
          Log a message object with the FATAL level.
 void fatal(Object message, Throwable t)
          Log a message at the FATAL level including the stack trace of the Throwablet passed as parameter.
 void fatal(String message)
          Log a message object with the FATAL level.
 void fatal(String message, Object... params)
          Log a message with parameters at the FATAL level.
 void fatal(String message, Throwable t)
          Log a message at the FATAL level including the stack trace of the Throwablet passed as parameter.
 void info(Marker marker, Message msg)
          Log a message with the specific Marker at the INFO level.
 void info(Marker marker, Message msg, Throwable t)
          Log a message with the specific Marker at the INFO level.
 void info(Marker marker, Object message)
          Log a message object with the INFO level.
 void info(Marker marker, Object message, Throwable t)
          Log a message at the INFO level including the stack trace of the Throwablet passed as parameter.
 void info(Marker marker, String message)
          Log a message object with the INFO level.
 void info(Marker marker, String message, Object... params)
          Log a message with parameters at the INFO level.
 void info(Marker marker, String message, Throwable t)
          Log a message at the INFO level including the stack trace of the Throwablet passed as parameter.
 void info(Message msg)
          Log a message with the specific Marker at the TRACE level.
 void info(Message msg, Throwable t)
          Log a message with the specific Marker at the INFO level.
 void info(Object message)
          Log a message object with the INFO level.
 void info(Object message, Throwable t)
          Log a message at the INFO level including the stack trace of the Throwablet passed as parameter.
 void info(String message)
          Log a message object with the INFO level.
 void info(String message, Object... params)
          Log a message with parameters at the INFO level.
 void info(String message, Throwable t)
          Log a message at the INFO level including the stack trace of the Throwablet passed as parameter.
 boolean isDebugEnabled()
          Check whether this Logger is enabled for the DEBUG Level.
 boolean isDebugEnabled(Marker marker)
          Check whether this Logger is enabled for the DEBUG Level.
 boolean isErrorEnabled()
          Check whether this Logger is enabled for the ERROR Level.
 boolean isErrorEnabled(Marker marker)
          Check whether this Logger is enabled for the ERROR Level.
 boolean isFatalEnabled()
          Check whether this Logger is enabled for the FATAL Level.
 boolean isFatalEnabled(Marker marker)
          Check whether this Logger is enabled for the FATAL Level.
 boolean isInfoEnabled()
          Check whether this Logger is enabled for the INFO Level.
 boolean isInfoEnabled(Marker marker)
          Check whether this Logger is enabled for the INFO Level.
 boolean isTraceEnabled()
          Check whether this Logger is enabled for the TRACE Level.
 boolean isTraceEnabled(Marker marker)
          Check whether this Logger is enabled for the TRACE Level.
 boolean isWarnEnabled()
          Check whether this Logger is enabled for the WARN Level.
 boolean isWarnEnabled(Marker marker)
          Check whether this Logger is enabled for the WARN Level.
<T extends Throwable>
T
throwing(Level level, T t)
          Log an exception or error to be thrown.
<T extends Throwable>
T
throwing(T t)
          Log an exception or error to be thrown.
 void trace(Marker marker, Message msg)
          Log a message with the specific Marker at the TRACE level.
 void trace(Marker marker, Message msg, Throwable t)
          Log a message with the specific Marker at the TRACE level.
 void trace(Marker marker, Object message)
          Log a message object with the TRACE level.
 void trace(Marker marker, Object message, Throwable t)
          Log a message at the TRACE level including the stack trace of the Throwablet passed as parameter.
 void trace(Marker marker, String message)
          Log a message object with the TRACE level.
 void trace(Marker marker, String message, Object... params)
          Log a message with parameters at the TRACE level.
 void trace(Marker marker, String message, Throwable t)
          Log a message at the TRACE level including the stack trace of the Throwablet passed as parameter.
 void trace(Message msg)
          Log a message with the specific Marker at the TRACE level.
 void trace(Message msg, Throwable t)
          Log a message with the specific Marker at the TRACE level.
 void trace(Object message)
          Log a message object with the TRACE level.
 void trace(Object message, Throwable t)
          Log a message at the TRACE level including the stack trace of the Throwablet passed as parameter.
 void trace(String message)
          Log a message object with the TRACE level.
 void trace(String message, Object... params)
          Log a message with parameters at the TRACE level.
 void trace(String message, Throwable t)
          Log a message at the TRACE level including the stack trace of the Throwablet passed as parameter.
 void warn(Marker marker, Message msg)
          Log a message with the specific Marker at the WARN level.
 void warn(Marker marker, Message msg, Throwable t)
          Log a message with the specific Marker at the WARN level.
 void warn(Marker marker, Object message)
          Log a message object with the WARN level.
 void warn(Marker marker, Object message, Throwable t)
          Log a message at the WARN level including the stack trace of the Throwablet passed as parameter.
 void warn(Marker marker, String message)
          Log a message object with the WARN level.
 void warn(Marker marker, String message, Object... params)
          Log a message with parameters at the WARN level.
 void warn(Marker marker, String message, Throwable t)
          Log a message at the WARN level including the stack trace of the Throwablet passed as parameter.
 void warn(Message msg)
          Log a message with the specific Marker at the WARN level.
 void warn(Message msg, Throwable t)
          Log a message with the specific Marker at the WARN level.
 void warn(Object message)
          Log a message object with the WARN level.
 void warn(Object message, Throwable t)
          Log a message at the WARN level including the stack trace of the Throwablet passed as parameter.
 void warn(String message)
          Log a message object with the WARN level.
 void warn(String message, Object... params)
          Log a message with parameters at the WARN level.
 void warn(String message, Throwable t)
          Log a message at the WARN level including the stack trace of the Throwablet passed as parameter.
 

Method Detail

entry

void entry()
Log entry to a method.


entry

void entry(Object... params)
Log entry to a method.

Parameters:
params - The parameters to the method.

exit

void exit()
Log exit from a method.


exit

<R> R exit(R result)
Log exiting from a method with the result. This may be coded as
return logger.exit(myResult);

Type Parameters:
R - The type of the parameter and object being returned.
Parameters:
result - The result being returned from the method call.
Returns:
the result.

throwing

<T extends Throwable> T throwing(T t)
Log an exception or error to be thrown. This may be coded as
throw logger.throwing(myException);

Type Parameters:
T - the Throwable type.
Parameters:
t - The Throwable.
Returns:
the Throwable.

throwing

<T extends Throwable> T throwing(Level level,
                                 T t)
Log an exception or error to be thrown. This may be coded as
throw logger.throwing(debug, myException);

Type Parameters:
T - the Throwable type.
Parameters:
level - The logging Level.
t - The Throwable.
Returns:
the Throwable.

catching

void catching(Throwable t)
Log an exception or error that has been caught.

Parameters:
t - The Throwable.

catching

void catching(Level level,
              Throwable t)
Log an exception or error that has been caught.

Parameters:
level - The logging Level.
t - The Throwable.

trace

void trace(String message)
Log a message object with the TRACE level.

Parameters:
message - the message object to log.

trace

void trace(Marker marker,
           String message)
Log a message object with the TRACE level.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.

trace

void trace(String message,
           Throwable t)
Log a message at the TRACE level including the stack trace of the Throwablet passed as parameter.

See debug(String) form for more detailed information.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

trace

void trace(Marker marker,
           String message,
           Throwable t)
Log a message at the TRACE level including the stack trace of the Throwablet passed as parameter.

See debug(String) form for more detailed information.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.
t - the exception to log, including its stack trace.

trace

void trace(Object message)
Log a message object with the TRACE level.

Parameters:
message - the message object to log.

trace

void trace(Marker marker,
           Object message)
Log a message object with the TRACE level.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.

trace

void trace(Object message,
           Throwable t)
Log a message at the TRACE level including the stack trace of the Throwablet passed as parameter.

See debug(String) form for more detailed information.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

trace

void trace(Marker marker,
           Object message,
           Throwable t)
Log a message at the TRACE level including the stack trace of the Throwablet passed as parameter.

See debug(String) form for more detailed information.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.
t - the exception to log, including its stack trace.

trace

void trace(String message,
           Object... params)
Log a message with parameters at the TRACE level.

Parameters:
message - the message to log.
params - parameters to the message.

trace

void trace(Marker marker,
           String message,
           Object... params)
Log a message with parameters at the TRACE level.

Parameters:
marker - the marker data specific to this log statement
message - the message to log.
params - parameters to the message.

isTraceEnabled

boolean isTraceEnabled()
Check whether this Logger is enabled for the TRACE Level.

Returns:
boolean - true if this Logger is enabled for level TRACE, false otherwise.

isTraceEnabled

boolean isTraceEnabled(Marker marker)
Check whether this Logger is enabled for the TRACE Level.

Parameters:
marker - The marker data specific to this log statement.
Returns:
boolean - true if this Logger is enabled for level TRACE, false otherwise.

trace

void trace(Message msg)
Log a message with the specific Marker at the TRACE level.

Parameters:
msg - the message string to be logged

trace

void trace(Message msg,
           Throwable t)
Log a message with the specific Marker at the TRACE level.

Parameters:
msg - the message string to be logged
t - A Throwable or null.

trace

void trace(Marker marker,
           Message msg)
Log a message with the specific Marker at the TRACE level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged

trace

void trace(Marker marker,
           Message msg,
           Throwable t)
Log a message with the specific Marker at the TRACE level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged
t - A Throwable or null.

debug

void debug(String message)
Log a message object with the DEBUG level.

Parameters:
message - the message object to log.

debug

void debug(Marker marker,
           String message)
Log a message object with the DEBUG level.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.

debug

void debug(String message,
           Throwable t)
Log a message at the DEBUG level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message to log.
t - the exception to log, including its stack trace.

debug

void debug(Marker marker,
           String message,
           Throwable t)
Log a message at the DEBUG level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - the marker data specific to this log statement
message - the message to log.
t - the exception to log, including its stack trace.

debug

void debug(Object message)
Log a message object with the DEBUG level.

Parameters:
message - the message object to log.

debug

void debug(Marker marker,
           Object message)
Log a message object with the DEBUG level.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.

debug

void debug(Object message,
           Throwable t)
Log a message at the DEBUG level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message to log.
t - the exception to log, including its stack trace.

debug

void debug(Marker marker,
           Object message,
           Throwable t)
Log a message at the DEBUG level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - the marker data specific to this log statement
message - the message to log.
t - the exception to log, including its stack trace.

debug

void debug(String message,
           Object... params)
Log a message with parameters at the DEBUG level.

Parameters:
message - the message to log.
params - parameters to the message.

debug

void debug(Marker marker,
           String message,
           Object... params)
Log a message with parameters at the DEBUG level.

Parameters:
marker - the marker data specific to this log statement
message - the message to log.
params - parameters to the message.

isDebugEnabled

boolean isDebugEnabled()
Check whether this Logger is enabled for the DEBUG Level.

Returns:
boolean - true if this Logger is enabled for level DEBUG, false otherwise.

isDebugEnabled

boolean isDebugEnabled(Marker marker)
Check whether this Logger is enabled for the DEBUG Level.

Parameters:
marker - The marker data specific to this log statement.
Returns:
boolean - true if this Logger is enabled for level DEBUG, false otherwise.

debug

void debug(Message msg)
Log a message with the specific Marker at the DEBUG level.

Parameters:
msg - the message string to be logged

debug

void debug(Message msg,
           Throwable t)
Log a message with the specific Marker at the DEBUG level.

Parameters:
msg - the message string to be logged
t - A Throwable or null.

debug

void debug(Marker marker,
           Message msg)
Log a message with the specific Marker at the DEBUG level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged

debug

void debug(Marker marker,
           Message msg,
           Throwable t)
Log a message with the specific Marker at the DEBUG level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged
t - A Throwable or null.

info

void info(String message)
Log a message object with the INFO level.

Parameters:
message - the message object to log.

info

void info(Marker marker,
          String message)
Log a message object with the INFO level.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.

info

void info(String message,
          Throwable t)
Log a message at the INFO level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

info

void info(Marker marker,
          String message,
          Throwable t)
Log a message at the INFO level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.
t - the exception to log, including its stack trace.

info

void info(Object message)
Log a message object with the INFO level.

Parameters:
message - the message object to log.

info

void info(Marker marker,
          Object message)
Log a message object with the INFO level.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.

info

void info(Object message,
          Throwable t)
Log a message at the INFO level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

info

void info(Marker marker,
          Object message,
          Throwable t)
Log a message at the INFO level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.
t - the exception to log, including its stack trace.

info

void info(String message,
          Object... params)
Log a message with parameters at the INFO level.

Parameters:
message - the message to log.
params - parameters to the message.

info

void info(Marker marker,
          String message,
          Object... params)
Log a message with parameters at the INFO level.

Parameters:
marker - the marker data specific to this log statement
message - the message to log.
params - parameters to the message.

isInfoEnabled

boolean isInfoEnabled()
Check whether this Logger is enabled for the INFO Level.

Returns:
boolean - true if this Logger is enabled for level INFO, false otherwise.

isInfoEnabled

boolean isInfoEnabled(Marker marker)
Check whether this Logger is enabled for the INFO Level.

Parameters:
marker - The marker data specific to this log statement.
Returns:
boolean - true if this Logger is enabled for level INFO, false otherwise.

info

void info(Message msg)
Log a message with the specific Marker at the TRACE level.

Parameters:
msg - the message string to be logged

info

void info(Message msg,
          Throwable t)
Log a message with the specific Marker at the INFO level.

Parameters:
msg - the message string to be logged
t - A Throwable or null.

info

void info(Marker marker,
          Message msg)
Log a message with the specific Marker at the INFO level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged

info

void info(Marker marker,
          Message msg,
          Throwable t)
Log a message with the specific Marker at the INFO level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged
t - A Throwable or null.

warn

void warn(String message)
Log a message object with the WARN level.

Parameters:
message - the message object to log.

warn

void warn(Marker marker,
          String message)
Log a message object with the WARN level.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.

warn

void warn(String message,
          Throwable t)
Log a message at the WARN level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

warn

void warn(Marker marker,
          String message,
          Throwable t)
Log a message at the WARN level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.
t - the exception to log, including its stack trace.

warn

void warn(Object message)
Log a message object with the WARN level.

Parameters:
message - the message object to log.

warn

void warn(Marker marker,
          Object message)
Log a message object with the WARN level.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.

warn

void warn(Object message,
          Throwable t)
Log a message at the WARN level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

warn

void warn(Marker marker,
          Object message,
          Throwable t)
Log a message at the WARN level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - the marker data specific to this log statement
message - the message object to log.
t - the exception to log, including its stack trace.

warn

void warn(String message,
          Object... params)
Log a message with parameters at the WARN level.

Parameters:
message - the message to log.
params - parameters to the message.

warn

void warn(Marker marker,
          String message,
          Object... params)
Log a message with parameters at the WARN level.

Parameters:
marker - the marker data specific to this log statement.
message - the message to log.
params - parameters to the message.

isWarnEnabled

boolean isWarnEnabled()
Check whether this Logger is enabled for the WARN Level.

Returns:
boolean - true if this Logger is enabled for level WARN, false otherwise.

isWarnEnabled

boolean isWarnEnabled(Marker marker)
Check whether this Logger is enabled for the WARN Level.

Parameters:
marker - The marker data specific to this log statement.
Returns:
boolean - true if this Logger is enabled for level WARN, false otherwise.

warn

void warn(Message msg)
Log a message with the specific Marker at the WARN level.

Parameters:
msg - the message string to be logged

warn

void warn(Message msg,
          Throwable t)
Log a message with the specific Marker at the WARN level.

Parameters:
msg - the message string to be logged
t - A Throwable or null.

warn

void warn(Marker marker,
          Message msg)
Log a message with the specific Marker at the WARN level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged

warn

void warn(Marker marker,
          Message msg,
          Throwable t)
Log a message with the specific Marker at the WARN level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged
t - A Throwable or null.

error

void error(String message)
Log a message object with the ERROR level.

Parameters:
message - the message object to log.

error

void error(Marker marker,
           String message)
Log a message object with the ERROR level.

Parameters:
marker - the marker data specific to this log statement.
message - the message object to log.

error

void error(String message,
           Throwable t)
Log a message at the ERROR level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

error

void error(Marker marker,
           String message,
           Throwable t)
Log a message at the ERROR level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - the marker data specific to this log statement.
message - the message object to log.
t - the exception to log, including its stack trace.

error

void error(Object message)
Log a message object with the ERROR level.

Parameters:
message - the message object to log.

error

void error(Marker marker,
           Object message)
Log a message object with the ERROR level.

Parameters:
marker - the marker data specific to this log statement.
message - the message object to log.

error

void error(Object message,
           Throwable t)
Log a message at the ERROR level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

error

void error(Marker marker,
           Object message,
           Throwable t)
Log a message at the ERROR level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - the marker data specific to this log statement.
message - the message object to log.
t - the exception to log, including its stack trace.

error

void error(String message,
           Object... params)
Log a message with parameters at the ERROR level.

Parameters:
message - the message to log.
params - parameters to the message.

error

void error(Marker marker,
           String message,
           Object... params)
Log a message with parameters at the ERROR level.

Parameters:
marker - the marker data specific to this log statement.
message - the message to log.
params - parameters to the message.

isErrorEnabled

boolean isErrorEnabled()
Check whether this Logger is enabled for the ERROR Level.

Returns:
boolean - true if this Logger is enabled for level ERROR, false otherwise.

isErrorEnabled

boolean isErrorEnabled(Marker marker)
Check whether this Logger is enabled for the ERROR Level.

Parameters:
marker - The marker data specific to this log statement.
Returns:
boolean - true if this Logger is enabled for level ERROR, false otherwise.

error

void error(Message msg)
Log a message with the specific Marker at the ERROR level.

Parameters:
msg - the message string to be logged

error

void error(Message msg,
           Throwable t)
Log a message with the specific Marker at the ERROR level.

Parameters:
msg - the message string to be logged
t - A Throwable or null.

error

void error(Marker marker,
           Message msg)
Log a message with the specific Marker at the ERROR level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged

error

void error(Marker marker,
           Message msg,
           Throwable t)
Log a message with the specific Marker at the ERROR level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged
t - A Throwable or null.

fatal

void fatal(String message)
Log a message object with the FATAL level.

Parameters:
message - the message object to log.

fatal

void fatal(Marker marker,
           String message)
Log a message object with the FATAL level.

Parameters:
marker - The marker data specific to this log statement.
message - the message object to log.

fatal

void fatal(String message,
           Throwable t)
Log a message at the FATAL level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

fatal

void fatal(Marker marker,
           String message,
           Throwable t)
Log a message at the FATAL level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - The marker data specific to this log statement.
message - the message object to log.
t - the exception to log, including its stack trace.

fatal

void fatal(Object message)
Log a message object with the FATAL level.

Parameters:
message - the message object to log.

fatal

void fatal(Marker marker,
           Object message)
Log a message object with the FATAL level.

Parameters:
marker - The marker data specific to this log statement.
message - the message object to log.

fatal

void fatal(Object message,
           Throwable t)
Log a message at the FATAL level including the stack trace of the Throwablet passed as parameter.

Parameters:
message - the message object to log.
t - the exception to log, including its stack trace.

fatal

void fatal(Marker marker,
           Object message,
           Throwable t)
Log a message at the FATAL level including the stack trace of the Throwablet passed as parameter.

Parameters:
marker - The marker data specific to this log statement.
message - the message object to log.
t - the exception to log, including its stack trace.

fatal

void fatal(String message,
           Object... params)
Log a message with parameters at the FATAL level.

Parameters:
message - the message to log.
params - parameters to the message.

fatal

void fatal(Marker marker,
           String message,
           Object... params)
Log a message with parameters at the FATAL level.

Parameters:
marker - The marker data specific to this log statement.
message - the message to log.
params - parameters to the message.

isFatalEnabled

boolean isFatalEnabled()
Check whether this Logger is enabled for the FATAL Level.

Returns:
boolean - true if this Logger is enabled for level FATAL, false otherwise.

isFatalEnabled

boolean isFatalEnabled(Marker marker)
Check whether this Logger is enabled for the FATAL Level.

Parameters:
marker - The marker data specific to this log statement.
Returns:
boolean - true if this Logger is enabled for level FATAL, false otherwise.

fatal

void fatal(Message msg)
Log a message with the specific Marker at the FATAL level.

Parameters:
msg - the message string to be logged

fatal

void fatal(Message msg,
           Throwable t)
Log a message with the specific Marker at the FATAL level.

Parameters:
msg - the message string to be logged
t - A Throwable or null.

fatal

void fatal(Marker marker,
           Message msg)
Log a message with the specific Marker at the FATAL level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged

fatal

void fatal(Marker marker,
           Message msg,
           Throwable t)
Log a message with the specific Marker at the FATAL level.

Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged
t - A Throwable or null.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.