|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.common.util.Logger
org.modeshape.common.util.log.JdkLoggerImpl
public class JdkLoggerImpl
Logger that delivers messages to a JDK logger
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.modeshape.common.util.Logger |
---|
Logger.Level |
Field Summary |
---|
Fields inherited from class org.modeshape.common.util.Logger |
---|
LOGGING_LOCALE |
Constructor Summary | |
---|---|
JdkLoggerImpl(String category)
|
Method Summary | |
---|---|
void |
debug(String message,
Object... params)
Log a message at the DEBUG level according to the specified format and (optional) parameters. |
void |
debug(Throwable t,
String message,
Object... params)
Log an exception (throwable) at the DEBUG level with an accompanying message. |
void |
error(I18n message,
Object... params)
Log a message at the ERROR level according to the specified format and (optional) parameters. |
void |
error(Throwable t,
I18n message,
Object... params)
Log an exception (throwable) at the ERROR level with an accompanying message. |
String |
getName()
Return the name of this logger instance. |
void |
info(I18n message,
Object... params)
Log a message at the INFO level according to the specified format and (optional) parameters. |
void |
info(Throwable t,
I18n message,
Object... params)
Log an exception (throwable) at the INFO level with an accompanying message. |
boolean |
isDebugEnabled()
Return whether messages at the DEBUG level are being logged. |
boolean |
isErrorEnabled()
Return whether messages at the ERROR level are being logged. |
boolean |
isInfoEnabled()
Return whether messages at the INFORMATION level are being logged. |
boolean |
isTraceEnabled()
Return whether messages at the TRACE level are being logged. |
boolean |
isWarnEnabled()
Return whether messages at the WARNING level are being logged. |
void |
trace(String message,
Object... params)
Log a message at the TRACE level according to the specified format and (optional) parameters. |
void |
trace(Throwable t,
String message,
Object... params)
Log an exception (throwable) at the TRACE level with an accompanying message. |
void |
warn(I18n message,
Object... params)
Log a message at the WARNING level according to the specified format and (optional) parameters. |
void |
warn(Throwable t,
I18n message,
Object... params)
Log an exception (throwable) at the WARNING level with an accompanying message. |
Methods inherited from class org.modeshape.common.util.Logger |
---|
getLevel, getLogger, getLogger, getLoggingLocale, log, log, setLoggingLocale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdkLoggerImpl(String category)
Method Detail |
---|
public String getName()
Logger
getName
in class Logger
public boolean isTraceEnabled()
Logger
isTraceEnabled
in class Logger
public boolean isDebugEnabled()
Logger
isDebugEnabled
in class Logger
public boolean isInfoEnabled()
Logger
isInfoEnabled
in class Logger
public boolean isWarnEnabled()
Logger
isWarnEnabled
in class Logger
public boolean isErrorEnabled()
Logger
isErrorEnabled
in class Logger
public void debug(String message, Object... params)
Logger
debug
in class Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void debug(Throwable t, String message, Object... params)
Logger
Logger.debug(String, Object...)
.
debug
in class Logger
t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringpublic void error(I18n message, Object... params)
Logger
error
in class Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void error(Throwable t, I18n message, Object... params)
Logger
Logger.error(I18n, Object...)
.
error
in class Logger
t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringpublic void info(I18n message, Object... params)
Logger
info
in class Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void info(Throwable t, I18n message, Object... params)
Logger
Logger.info(I18n, Object...)
.
info
in class Logger
t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringpublic void trace(String message, Object... params)
Logger
trace
in class Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void trace(Throwable t, String message, Object... params)
Logger
Logger.trace(String, Object...)
.
trace
in class Logger
t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringpublic void warn(I18n message, Object... params)
Logger
warn
in class Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void warn(Throwable t, I18n message, Object... params)
Logger
Logger.warn(I18n, Object...)
.
warn
in class Logger
t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |