|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.logging.LoggerWrapper
Wraps a logger instance. This can be used for static logger instances which might be instatatied before logging itself is configured. After configurating logging, all static 'wrappers' can then be called to wrap another logger instance.
| Method Summary | |
void |
debug(Object m)
Logs the message m with debug priority. |
void |
debug(Object m,
Throwable t)
|
void |
error(Object m)
Logs the message m with error priority. |
void |
error(Object m,
Throwable t)
|
void |
fatal(Object m)
Logs the message m with fatal priority. |
void |
fatal(Object m,
Throwable t)
|
void |
info(Object m)
Logs the message m with info priority. |
void |
info(Object m,
Throwable t)
|
boolean |
isDebugEnabled()
Returns true if for this category (Logger), a call to debug (or trace) would do something. |
boolean |
isServiceEnabled()
Returns true if for this category (Logger), a call to service (or debug or trace) would do something. |
boolean |
isTraceEnabled()
Returns true if for this category (Logger), a call to trace would do something. |
void |
service(Object m)
Logs the message m with service priority. |
void |
service(Object m,
Throwable t)
|
void |
setLevel(Level p)
If you want to override the level in the configuration file fixed for this category, you can do it with this method. |
void |
trace(Object m)
Logs the message m with trace priority. |
void |
trace(Object m,
Throwable t)
|
void |
warn(Object m)
Logs the message m with warn priority. |
void |
warn(Object m,
Throwable t)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public final void trace(Object m)
Logger
trace in interface LoggerLogger.debug(Object)
public final void trace(Object m,
Throwable t)
trace in interface Loggerpublic final void debug(Object m)
Logger
debug in interface Logger
public final void debug(Object m,
Throwable t)
debug in interface Loggerpublic final void service(Object m)
Logger
service in interface Logger
public final void service(Object m,
Throwable t)
service in interface Loggerpublic final void info(Object m)
Logger
info in interface Logger
public final void info(Object m,
Throwable t)
info in interface Loggerpublic final void warn(Object m)
Logger
warn in interface Logger
public final void warn(Object m,
Throwable t)
warn in interface Loggerpublic final void error(Object m)
Logger
error in interface Logger
public final void error(Object m,
Throwable t)
error in interface Loggerpublic final void fatal(Object m)
Logger
fatal in interface Logger
public final void fatal(Object m,
Throwable t)
fatal in interface Loggerpublic final boolean isTraceEnabled()
Logger
isTraceEnabled in interface Loggerpublic final boolean isDebugEnabled()
Logger
isDebugEnabled in interface Loggerpublic final boolean isServiceEnabled()
Logger
isServiceEnabled in interface Loggerpublic final void setLevel(Level p)
Logger
setLevel in interface Loggerp - The level of the priority. One of the constants
Level.TRACE, Level.DEBUG, Level.SERVICE, Level.INFO,
Level.WARN, Level.ERROR or Level.FATAL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||