public interface Logger
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg,
long value)
Formats and logs at debug level.
|
void |
debug(String msg,
Object... args)
Formats and logs at debug level.
|
void |
debug(String msg,
Throwable thrown)
Logs the given message at debug level, with Throwable information.
|
void |
debug(Throwable thrown)
Logs the given Throwable information at debug level
|
Logger |
getLogger(String name) |
String |
getName() |
void |
ignore(Throwable ignored)
Ignore an exception.
|
void |
info(String msg,
Object... args)
Formats and logs at info level.
|
void |
info(String msg,
Throwable thrown)
Logs the given message at info level, with Throwable information.
|
void |
info(Throwable thrown)
Logs the given Throwable information at info level
|
boolean |
isDebugEnabled() |
void |
setDebugEnabled(boolean enabled)
Mutator used to turn debug on programmatically.
|
void |
warn(String msg,
Object... args)
Formats and logs at warn level.
|
void |
warn(String msg,
Throwable thrown)
Logs the given message at warn level, with Throwable information.
|
void |
warn(Throwable thrown)
Logs the given Throwable information at warn level
|
String getName()
void warn(String msg, Object... args)
msg
- the formatting stringargs
- the optional argumentsvoid warn(Throwable thrown)
thrown
- the Throwable to logvoid warn(String msg, Throwable thrown)
msg
- the message to logthrown
- the Throwable to logvoid info(String msg, Object... args)
msg
- the formatting stringargs
- the optional argumentsvoid info(Throwable thrown)
thrown
- the Throwable to logvoid info(String msg, Throwable thrown)
msg
- the message to logthrown
- the Throwable to logboolean isDebugEnabled()
void setDebugEnabled(boolean enabled)
enabled
- whether to enable the debug levelvoid debug(String msg, Object... args)
msg
- the formatting stringargs
- the optional argumentsvoid debug(String msg, long value)
msg
- the formatting stringvalue
- long valuevoid debug(Throwable thrown)
thrown
- the Throwable to logvoid debug(String msg, Throwable thrown)
msg
- the message to logthrown
- the Throwable to logLogger getLogger(String name)
name
- the name of the loggervoid ignore(Throwable ignored)
This should be used rather than an empty catch block.
Copyright © 1995-2015 Webtide. All Rights Reserved.