|
|||||||||
| 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(java.lang.Object m)
Logs the message m with debug priority. |
void |
error(java.lang.Object m)
Logs the message m with error priority. |
void |
fatal(java.lang.Object m)
Logs the message m with fatal priority. |
void |
info(java.lang.Object m)
Logs the message m with info priority. |
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 (debug or trace) would do something. |
void |
service(java.lang.Object m)
Logs the message m with service priority. |
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 |
setPriority(Level p)
|
void |
trace(java.lang.Object m)
Logs the message m with trace priority. |
void |
warn(java.lang.Object m)
Logs the message m with warn priority. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public final void trace(java.lang.Object m)
Logger
trace in interface LoggerLogger.debug(java.lang.Object)public final void debug(java.lang.Object m)
Logger
debug in interface Loggerpublic final void service(java.lang.Object m)
Logger
service in interface Loggerpublic final void info(java.lang.Object m)
Logger
info in interface Loggerpublic final void warn(java.lang.Object m)
Logger
warn in interface Loggerpublic final void error(java.lang.Object m)
Logger
error in interface Loggerpublic final void fatal(java.lang.Object m)
Logger
fatal 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.public final void setPriority(Level p)
setPriority in interface Logger
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||