|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.logging.impl.LogKitLogger
public final class LogKitLogger
Implementation of org.logicalcobwebs.logging.Log
that wraps the jakarta-avalon-logkit
logging system. Configuration of LogKit
is left to the user.
LogKit
accepts only String
messages.
Therefore, this implementation converts object messages into strings
by called their toString()
method before logging them.
Field Summary | |
---|---|
private Logger |
logger
Logging goes to this LogKit logger |
Constructor Summary | |
---|---|
LogKitLogger(java.lang.String name)
Construct LogKitLogger which wraps the LogKit
logger with given name. |
Method Summary | |
---|---|
void |
debug(java.lang.Object message)
Log message to LogKit logger with DEBUG priority. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with DEBUG priority. |
void |
error(java.lang.Object message)
Log message to LogKit logger with ERROR priority. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with ERROR priority. |
void |
fatal(java.lang.Object message)
Log message to LogKit logger with FATAL_ERROR priority. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with FATAL_ERROR priority. |
void |
info(java.lang.Object message)
Log message to LogKit logger with INFO priority. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with INFO priority. |
boolean |
isDebugEnabled()
Check whether the LogKit logger will log messages of priority DEBUG . |
boolean |
isErrorEnabled()
Check whether the LogKit logger will log messages of priority ERROR . |
boolean |
isFatalEnabled()
Check whether the LogKit logger will log messages of priority FATAL_ERROR . |
boolean |
isInfoEnabled()
Check whether the LogKit logger will log messages of priority INFO . |
boolean |
isTraceEnabled()
Check whether the LogKit logger will log messages of priority DEBUG . |
boolean |
isWarnEnabled()
Check whether the LogKit logger will log messages of priority WARN . |
void |
trace(java.lang.Object message)
Log message to LogKit logger with DEBUG priority. |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with DEBUG priority. |
void |
warn(java.lang.Object message)
Log message to LogKit logger with WARN priority. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Log error to LogKit logger with WARN priority. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Logger logger
LogKit
logger
Constructor Detail |
---|
public LogKitLogger(java.lang.String name)
LogKitLogger
which wraps the LogKit
logger with given name.
name
- log nameMethod Detail |
---|
public void trace(java.lang.Object message)
LogKit
logger with DEBUG
priority.
trace
in interface Log
message
- log this messagepublic void trace(java.lang.Object message, java.lang.Throwable t)
LogKit
logger with DEBUG
priority.
trace
in interface Log
message
- log this messaget
- log this causepublic void debug(java.lang.Object message)
LogKit
logger with DEBUG
priority.
debug
in interface Log
message
- log this messagepublic void debug(java.lang.Object message, java.lang.Throwable t)
LogKit
logger with DEBUG
priority.
debug
in interface Log
message
- log this messaget
- log this causepublic void info(java.lang.Object message)
LogKit
logger with INFO
priority.
info
in interface Log
message
- log this messagepublic void info(java.lang.Object message, java.lang.Throwable t)
LogKit
logger with INFO
priority.
info
in interface Log
message
- log this messaget
- log this causepublic void warn(java.lang.Object message)
LogKit
logger with WARN
priority.
warn
in interface Log
message
- log this messagepublic void warn(java.lang.Object message, java.lang.Throwable t)
LogKit
logger with WARN
priority.
warn
in interface Log
message
- log this messaget
- log this causepublic void error(java.lang.Object message)
LogKit
logger with ERROR
priority.
error
in interface Log
message
- log this messagepublic void error(java.lang.Object message, java.lang.Throwable t)
LogKit
logger with ERROR
priority.
error
in interface Log
message
- log this messaget
- log this causepublic void fatal(java.lang.Object message)
LogKit
logger with FATAL_ERROR
priority.
fatal
in interface Log
message
- log this messagepublic void fatal(java.lang.Object message, java.lang.Throwable t)
LogKit
logger with FATAL_ERROR
priority.
fatal
in interface Log
message
- log this messaget
- log this causepublic boolean isDebugEnabled()
LogKit
logger will log messages of priority DEBUG
.
isDebugEnabled
in interface Log
public boolean isErrorEnabled()
LogKit
logger will log messages of priority ERROR
.
isErrorEnabled
in interface Log
public boolean isFatalEnabled()
LogKit
logger will log messages of priority FATAL_ERROR
.
isFatalEnabled
in interface Log
public boolean isInfoEnabled()
LogKit
logger will log messages of priority INFO
.
isInfoEnabled
in interface Log
public boolean isTraceEnabled()
LogKit
logger will log messages of priority DEBUG
.
isTraceEnabled
in interface Log
public boolean isWarnEnabled()
LogKit
logger will log messages of priority WARN
.
isWarnEnabled
in interface Log
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |