|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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. |
|
|
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. |
|
|
throwing(Level level,
T t)
Log an exception or error to be thrown. |
|
|
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 |
|---|
void entry()
void entry(Object... params)
params - The parameters to the method.void exit()
<R> R exit(R result)
R - The type of the parameter and object being returned.result - The result being returned from the method call.
<T extends Throwable> T throwing(T t)
T - the Throwable type.t - The Throwable.
<T extends Throwable> T throwing(Level level,
T t)
T - the Throwable type.level - The logging Level.t - The Throwable.
void catching(Throwable t)
t - The Throwable.
void catching(Level level,
Throwable t)
level - The logging Level.t - The Throwable.void trace(String message)
TRACE level.
message - the message object to log.
void trace(Marker marker,
String message)
TRACE level.
marker - the marker data specific to this log statementmessage - the message object to log.
void trace(String message,
Throwable t)
TRACE level including the
stack trace of the Throwablet passed as parameter.
See debug(String) form for more detailed information.
message - the message object to log.t - the exception to log, including its stack trace.
void trace(Marker marker,
String message,
Throwable t)
TRACE level including the
stack trace of the Throwablet passed as parameter.
See debug(String) form for more detailed information.
marker - the marker data specific to this log statementmessage - the message object to log.t - the exception to log, including its stack trace.void trace(Object message)
TRACE level.
message - the message object to log.
void trace(Marker marker,
Object message)
TRACE level.
marker - the marker data specific to this log statementmessage - the message object to log.
void trace(Object message,
Throwable t)
TRACE level including the
stack trace of the Throwablet passed as parameter.
See debug(String) form for more detailed information.
message - the message object to log.t - the exception to log, including its stack trace.
void trace(Marker marker,
Object message,
Throwable t)
TRACE level including the
stack trace of the Throwablet passed as parameter.
See debug(String) form for more detailed information.
marker - the marker data specific to this log statementmessage - the message object to log.t - the exception to log, including its stack trace.
void trace(String message,
Object... params)
TRACE level.
message - the message to log.params - parameters to the message.
void trace(Marker marker,
String message,
Object... params)
TRACE level.
marker - the marker data specific to this log statementmessage - the message to log.params - parameters to the message.boolean isTraceEnabled()
true if this Logger is enabled for level
TRACE, false otherwise.boolean isTraceEnabled(Marker marker)
marker - The marker data specific to this log statement.
true if this Logger is enabled for level
TRACE, false otherwise.void trace(Message msg)
msg - the message string to be logged
void trace(Message msg,
Throwable t)
msg - the message string to be loggedt - A Throwable or null.
void trace(Marker marker,
Message msg)
marker - the marker data specific to this log statementmsg - the message string to be logged
void trace(Marker marker,
Message msg,
Throwable t)
marker - the marker data specific to this log statementmsg - the message string to be loggedt - A Throwable or null.void debug(String message)
DEBUG level.
message - the message object to log.
void debug(Marker marker,
String message)
DEBUG level.
marker - the marker data specific to this log statementmessage - the message object to log.
void debug(String message,
Throwable t)
DEBUG level including the
stack trace of the Throwablet passed as parameter.
message - the message to log.t - the exception to log, including its stack trace.
void debug(Marker marker,
String message,
Throwable t)
DEBUG level including the
stack trace of the Throwablet passed as parameter.
marker - the marker data specific to this log statementmessage - the message to log.t - the exception to log, including its stack trace.void debug(Object message)
DEBUG level.
message - the message object to log.
void debug(Marker marker,
Object message)
DEBUG level.
marker - the marker data specific to this log statementmessage - the message object to log.
void debug(Object message,
Throwable t)
DEBUG level including the
stack trace of the Throwablet passed as parameter.
message - the message to log.t - the exception to log, including its stack trace.
void debug(Marker marker,
Object message,
Throwable t)
DEBUG level including the
stack trace of the Throwablet passed as parameter.
marker - the marker data specific to this log statementmessage - the message to log.t - the exception to log, including its stack trace.
void debug(String message,
Object... params)
DEBUG level.
message - the message to log.params - parameters to the message.
void debug(Marker marker,
String message,
Object... params)
DEBUG level.
marker - the marker data specific to this log statementmessage - the message to log.params - parameters to the message.boolean isDebugEnabled()
true if this Logger is enabled for level
DEBUG, false otherwise.boolean isDebugEnabled(Marker marker)
marker - The marker data specific to this log statement.
true if this Logger is enabled for level
DEBUG, false otherwise.void debug(Message msg)
msg - the message string to be logged
void debug(Message msg,
Throwable t)
msg - the message string to be loggedt - A Throwable or null.
void debug(Marker marker,
Message msg)
marker - the marker data specific to this log statementmsg - the message string to be logged
void debug(Marker marker,
Message msg,
Throwable t)
marker - the marker data specific to this log statementmsg - the message string to be loggedt - A Throwable or null.void info(String message)
INFO level.
message - the message object to log.
void info(Marker marker,
String message)
INFO level.
marker - the marker data specific to this log statementmessage - the message object to log.
void info(String message,
Throwable t)
INFO level including the
stack trace of the Throwablet passed as parameter.
message - the message object to log.t - the exception to log, including its stack trace.
void info(Marker marker,
String message,
Throwable t)
INFO level including the
stack trace of the Throwablet passed as parameter.
marker - the marker data specific to this log statementmessage - the message object to log.t - the exception to log, including its stack trace.void info(Object message)
INFO level.
message - the message object to log.
void info(Marker marker,
Object message)
INFO level.
marker - the marker data specific to this log statementmessage - the message object to log.
void info(Object message,
Throwable t)
INFO level including the
stack trace of the Throwablet passed as parameter.
message - the message object to log.t - the exception to log, including its stack trace.
void info(Marker marker,
Object message,
Throwable t)
INFO level including the
stack trace of the Throwablet passed as parameter.
marker - the marker data specific to this log statementmessage - the message object to log.t - the exception to log, including its stack trace.
void info(String message,
Object... params)
INFO level.
message - the message to log.params - parameters to the message.
void info(Marker marker,
String message,
Object... params)
INFO level.
marker - the marker data specific to this log statementmessage - the message to log.params - parameters to the message.boolean isInfoEnabled()
true if this Logger is enabled for level
INFO, false otherwise.boolean isInfoEnabled(Marker marker)
marker - The marker data specific to this log statement.
true if this Logger is enabled for level
INFO, false otherwise.void info(Message msg)
msg - the message string to be logged
void info(Message msg,
Throwable t)
msg - the message string to be loggedt - A Throwable or null.
void info(Marker marker,
Message msg)
marker - the marker data specific to this log statementmsg - the message string to be logged
void info(Marker marker,
Message msg,
Throwable t)
marker - the marker data specific to this log statementmsg - the message string to be loggedt - A Throwable or null.void warn(String message)
WARN level.
message - the message object to log.
void warn(Marker marker,
String message)
WARN level.
marker - the marker data specific to this log statementmessage - the message object to log.
void warn(String message,
Throwable t)
WARN level including the
stack trace of the Throwablet passed as parameter.
message - the message object to log.t - the exception to log, including its stack trace.
void warn(Marker marker,
String message,
Throwable t)
WARN level including the
stack trace of the Throwablet passed as parameter.
marker - the marker data specific to this log statementmessage - the message object to log.t - the exception to log, including its stack trace.void warn(Object message)
WARN level.
message - the message object to log.
void warn(Marker marker,
Object message)
WARN level.
marker - the marker data specific to this log statementmessage - the message object to log.
void warn(Object message,
Throwable t)
WARN level including the
stack trace of the Throwablet passed as parameter.
message - the message object to log.t - the exception to log, including its stack trace.
void warn(Marker marker,
Object message,
Throwable t)
WARN level including the
stack trace of the Throwablet passed as parameter.
marker - the marker data specific to this log statementmessage - the message object to log.t - the exception to log, including its stack trace.
void warn(String message,
Object... params)
WARN level.
message - the message to log.params - parameters to the message.
void warn(Marker marker,
String message,
Object... params)
WARN level.
marker - the marker data specific to this log statement.message - the message to log.params - parameters to the message.boolean isWarnEnabled()
true if this Logger is enabled for level
WARN, false otherwise.boolean isWarnEnabled(Marker marker)
marker - The marker data specific to this log statement.
true if this Logger is enabled for level
WARN, false otherwise.void warn(Message msg)
msg - the message string to be logged
void warn(Message msg,
Throwable t)
msg - the message string to be loggedt - A Throwable or null.
void warn(Marker marker,
Message msg)
marker - the marker data specific to this log statementmsg - the message string to be logged
void warn(Marker marker,
Message msg,
Throwable t)
marker - the marker data specific to this log statementmsg - the message string to be loggedt - A Throwable or null.void error(String message)
ERROR level.
message - the message object to log.
void error(Marker marker,
String message)
ERROR level.
marker - the marker data specific to this log statement.message - the message object to log.
void error(String message,
Throwable t)
ERROR level including the
stack trace of the Throwablet passed as parameter.
message - the message object to log.t - the exception to log, including its stack trace.
void error(Marker marker,
String message,
Throwable t)
ERROR level including the
stack trace of the Throwablet passed as parameter.
marker - the marker data specific to this log statement.message - the message object to log.t - the exception to log, including its stack trace.void error(Object message)
ERROR level.
message - the message object to log.
void error(Marker marker,
Object message)
ERROR level.
marker - the marker data specific to this log statement.message - the message object to log.
void error(Object message,
Throwable t)
ERROR level including the
stack trace of the Throwablet passed as parameter.
message - the message object to log.t - the exception to log, including its stack trace.
void error(Marker marker,
Object message,
Throwable t)
ERROR level including the
stack trace of the Throwablet passed as parameter.
marker - the marker data specific to this log statement.message - the message object to log.t - the exception to log, including its stack trace.
void error(String message,
Object... params)
ERROR level.
message - the message to log.params - parameters to the message.
void error(Marker marker,
String message,
Object... params)
ERROR level.
marker - the marker data specific to this log statement.message - the message to log.params - parameters to the message.boolean isErrorEnabled()
true if this Logger is enabled for level
ERROR, false otherwise.boolean isErrorEnabled(Marker marker)
marker - The marker data specific to this log statement.
true if this Logger is enabled for level
ERROR, false otherwise.void error(Message msg)
msg - the message string to be logged
void error(Message msg,
Throwable t)
msg - the message string to be loggedt - A Throwable or null.
void error(Marker marker,
Message msg)
marker - the marker data specific to this log statementmsg - the message string to be logged
void error(Marker marker,
Message msg,
Throwable t)
marker - the marker data specific to this log statementmsg - the message string to be loggedt - A Throwable or null.void fatal(String message)
FATAL level.
message - the message object to log.
void fatal(Marker marker,
String message)
FATAL level.
marker - The marker data specific to this log statement.message - the message object to log.
void fatal(String message,
Throwable t)
FATAL level including the
stack trace of the Throwablet passed as parameter.
message - the message object to log.t - the exception to log, including its stack trace.
void fatal(Marker marker,
String message,
Throwable t)
FATAL level including the
stack trace of the Throwablet passed as parameter.
marker - The marker data specific to this log statement.message - the message object to log.t - the exception to log, including its stack trace.void fatal(Object message)
FATAL level.
message - the message object to log.
void fatal(Marker marker,
Object message)
FATAL level.
marker - The marker data specific to this log statement.message - the message object to log.
void fatal(Object message,
Throwable t)
FATAL level including the
stack trace of the Throwablet passed as parameter.
message - the message object to log.t - the exception to log, including its stack trace.
void fatal(Marker marker,
Object message,
Throwable t)
FATAL level including the
stack trace of the Throwablet passed as parameter.
marker - The marker data specific to this log statement.message - the message object to log.t - the exception to log, including its stack trace.
void fatal(String message,
Object... params)
FATAL level.
message - the message to log.params - parameters to the message.
void fatal(Marker marker,
String message,
Object... params)
FATAL level.
marker - The marker data specific to this log statement.message - the message to log.params - parameters to the message.boolean isFatalEnabled()
true if this Logger is enabled for level
FATAL, false otherwise.boolean isFatalEnabled(Marker marker)
marker - The marker data specific to this log statement.
true if this Logger is enabled for level
FATAL, false otherwise.void fatal(Message msg)
msg - the message string to be logged
void fatal(Message msg,
Throwable t)
msg - the message string to be loggedt - A Throwable or null.
void fatal(Marker marker,
Message msg)
marker - the marker data specific to this log statementmsg - the message string to be logged
void fatal(Marker marker,
Message msg,
Throwable t)
marker - the marker data specific to this log statementmsg - the message string to be loggedt - A Throwable or null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||