|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.util.logging.SimpleImpl
A very simple implementation of Logger. It writes everything to standard output or standard error (the configure string can contain `stderr' or `stdout' (default)). It does not know categories (and therefore is a Singleton class). It is possible to configure what should be logged as well. . and you cannot configure what to log (everything is always logged).
| Method Summary | |
static void |
configure(java.lang.String c)
The configure method of this Logger implemenation. |
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. |
static SimpleImpl |
getLoggerInstance(java.lang.String name)
|
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 |
log(java.lang.String s)
|
void |
service(java.lang.Object m)
Logs the message m with service priority. |
void |
setPriority(Level p)
One can change the priority. |
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 static SimpleImpl getLoggerInstance(java.lang.String name)
public static void configure(java.lang.String c)
A - string, which can contain the output (stdout or
stderr) and the priority (e.g. 'info')public void setPriority(Level p)
setPriority in interface Loggera - Level. For example org.mmbase.util.logging.Level.DEBUG.public final void log(java.lang.String s)
public void trace(java.lang.Object m)
Loggertrace in interface Loggerorg.mmbase.util.logging.LoggerLogger.debug(java.lang.Object)public void debug(java.lang.Object m)
Loggerdebug in interface Loggerpublic void service(java.lang.Object m)
Loggerservice in interface Loggerpublic void info(java.lang.Object m)
Loggerinfo in interface Loggerpublic void warn(java.lang.Object m)
Loggerwarn in interface Loggerpublic void error(java.lang.Object m)
Loggererror in interface Loggerpublic void fatal(java.lang.Object m)
Loggerfatal in interface Loggerpublic boolean isDebugEnabled()
LoggerisDebugEnabled in interface Loggerpublic boolean isServiceEnabled()
LoggerisServiceEnabled in interface Logger
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||