public static interface LogUtils.Log
Note: we're not trying to create another logging framework here! We're just trying to use Commons Logging where available, and java.util Logging where it's not. Most web containers will prefer Commons Logging, but we don't want to have to ship commons-logging.jar with, say, a Swing applet.
Modifier and Type | Method and Description |
---|---|
void |
debug(String debug,
Object... arguments)
Log a debug message.
|
void |
error(String error,
Object... arguments)
Log an error message.
|
void |
info(String info,
Object... arguments)
Log an info message.
|
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
void |
trace(String trace,
Object... arguments)
Log a trace message.
|
void |
warn(String warning,
Object... arguments)
Log a warning message.
|
boolean isTraceEnabled()
void trace(String trace, Object... arguments)
debug
- message to logarguments
- array of arguments that will be merged into the message using standard
java.text.MessageFormat
notation. As a special case, if the last
argument is a Throwable but is not referenced in the message, its stack trace
will be printedboolean isDebugEnabled()
void debug(String debug, Object... arguments)
debug
- message to logarguments
- array of arguments that will be merged into the message using standard
java.text.MessageFormat
notation. As a special case, if the last
argument is a Throwable but is not referenced in the message, its stack trace
will be printedboolean isInfoEnabled()
void info(String info, Object... arguments)
debug
- message to logarguments
- array of arguments that will be merged into the message using standard
java.text.MessageFormat
notation. As a special case, if the last
argument is a Throwable but is not referenced in the message, its stack trace
will be printedboolean isWarnEnabled()
void warn(String warning, Object... arguments)
debug
- message to logarguments
- array of arguments that will be merged into the message using standard
java.text.MessageFormat
notation. As a special case, if the last
argument is a Throwable but is not referenced in the message, its stack trace
will be printedboolean isErrorEnabled()
void error(String error, Object... arguments)
debug
- message to logarguments
- array of arguments that will be merged into the message using standard
java.text.MessageFormat
notation. As a special case, if the last
argument is a Throwable but is not referenced in the message, its stack trace
will be printedCopyright © 2015. All Rights Reserved.