|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.betabeans.scroogexhtml.logging.Logger
de.betabeans.scroogexhtml.logging.DefaultLogger
public final class DefaultLogger
A simple logger implementation.
Constructor Summary | |
---|---|
DefaultLogger()
|
Method Summary | |
---|---|
void |
debug(java.lang.Object message)
Send a DEBUG string to the log. |
void |
error(java.lang.Object message)
Send a LOG_ERROR string to the log. |
void |
fatal(java.lang.Object message)
Send a LOG_FATAL string to the log. |
void |
info(java.lang.Object message)
Send a INFO string to the log. |
boolean |
isDebugEnabled()
Is debug logging currently enabled? |
boolean |
isErrorEnabled()
Is error logging currently enabled? |
boolean |
isFatalEnabled()
Is fatal logging currently enabled? |
boolean |
isInfoEnabled()
Is info logging currently enabled? |
boolean |
isTraceEnabled()
Is trace logging currently enabled? |
boolean |
isWarnEnabled()
Is warn logging currently enabled? |
void |
warn(java.lang.Object message)
Send a LOG_WARN string to the log. |
Methods inherited from class de.betabeans.scroogexhtml.logging.Logger |
---|
addLogListener, debug, error, fatal, getLogger, getLogLevel, getLogListeners, getLogListenerVector, info, removeLogListener, setLogger, setLogLevel, trace, trace, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLogger()
Method Detail |
---|
public boolean isDebugEnabled()
Is debug logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String
concatenation) when the log level is more
than debug.
isDebugEnabled
in interface Log
isDebugEnabled
in class Logger
public boolean isErrorEnabled()
Is error logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String
concatenation) when the log level is more
than error.
isErrorEnabled
in interface Log
isErrorEnabled
in class Logger
public boolean isFatalEnabled()
Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String
concatenation) when the log level is more
than fatal.
isFatalEnabled
in interface Log
isFatalEnabled
in class Logger
public boolean isInfoEnabled()
Is info logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String
concatenation) when the log level is more
than info.
isInfoEnabled
in interface Log
isInfoEnabled
in class Logger
public boolean isTraceEnabled()
Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String
concatenation) when the log level is more
than trace.
isTraceEnabled
in interface Log
isTraceEnabled
in class Logger
public boolean isWarnEnabled()
Is warn logging currently enabled?
Call this method to prevent having to perform expensive operations (for
example, String
concatenation) when the log level is more
than warn.
isWarnEnabled
in interface Log
isWarnEnabled
in class Logger
public void debug(java.lang.Object message)
debug
in interface Log
debug
in class Logger
message
- The message to be logged.public void info(java.lang.Object message)
info
in interface Log
info
in class Logger
message
- The message to be logged.public void warn(java.lang.Object message)
warn
in interface Log
warn
in class Logger
message
- The message to be logged.public void error(java.lang.Object message)
error
in interface Log
error
in class Logger
message
- The message to be logged.public void fatal(java.lang.Object message)
fatal
in interface Log
fatal
in class Logger
message
- The message to be logged.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |