|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.Jdk14Logger
The default JDK 1.4 wrapper class for Logger. Please note that there is not an exact match to the priority levels that JDK 1.4 logging has and what LogKit or Log4J has. For that reason, the following priority level matching was used:
JDK 1.4 does allow you to have other levels like: CONFIG, FINER, and FINEST. Most projects don't separate out configuration logging from debugging information. Also, we wanted to maintain backwards compatibility as much as possible. Unfortunately, with all the "fineness" details, there is no equivalent to the "error" log level.
Constructor Summary | |
Jdk14Logger(java.util.logging.Logger logImpl)
Construct a Logger with specified jdk1.4 logger instance as implementation. |
Method Summary | |
void |
debug(java.lang.String message)
Log a debug message. |
void |
debug(java.lang.String message,
java.lang.Throwable throwable)
Log a debug message. |
void |
error(java.lang.String message)
Log a error message. |
void |
error(java.lang.String message,
java.lang.Throwable throwable)
Log a error message. |
void |
fatalError(java.lang.String message)
Log a fatalError message. |
void |
fatalError(java.lang.String message,
java.lang.Throwable throwable)
Log a fatalError message. |
Logger |
getChildLogger(java.lang.String name)
Create a new child logger. |
void |
info(java.lang.String message)
Log a info message. |
void |
info(java.lang.String message,
java.lang.Throwable throwable)
Log a info message. |
boolean |
isDebugEnabled()
Determine if messages of priority "debug" will be logged. |
boolean |
isErrorEnabled()
Determine if messages of priority "error" will be logged. |
boolean |
isFatalErrorEnabled()
Determine if messages of priority "fatalError" will be logged. |
boolean |
isInfoEnabled()
Determine if messages of priority "info" will be logged. |
boolean |
isWarnEnabled()
Determine if messages of priority "warn" will be logged. |
void |
warn(java.lang.String message)
Log a warn message. |
void |
warn(java.lang.String message,
java.lang.Throwable throwable)
Log a warn message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Jdk14Logger(java.util.logging.Logger logImpl)
logImpl
- the jdk1.4 logger instance to delegate toMethod Detail |
public final void debug(java.lang.String message)
debug
in interface Logger
message
- the messagepublic final void debug(java.lang.String message, java.lang.Throwable throwable)
debug
in interface Logger
message
- the messagethrowable
- the throwablepublic final boolean isDebugEnabled()
isDebugEnabled
in interface Logger
public final void info(java.lang.String message)
info
in interface Logger
message
- the messagepublic final void info(java.lang.String message, java.lang.Throwable throwable)
info
in interface Logger
message
- the messagethrowable
- the throwablepublic final boolean isInfoEnabled()
isInfoEnabled
in interface Logger
public final void warn(java.lang.String message)
warn
in interface Logger
message
- the messagepublic final void warn(java.lang.String message, java.lang.Throwable throwable)
warn
in interface Logger
message
- the messagethrowable
- the throwablepublic final boolean isWarnEnabled()
isWarnEnabled
in interface Logger
public final void error(java.lang.String message)
error
in interface Logger
message
- the messagepublic final void error(java.lang.String message, java.lang.Throwable throwable)
error
in interface Logger
message
- the messagethrowable
- the throwablepublic final boolean isErrorEnabled()
isErrorEnabled
in interface Logger
public final void fatalError(java.lang.String message)
fatalError
in interface Logger
message
- the messagepublic final void fatalError(java.lang.String message, java.lang.Throwable throwable)
fatalError
in interface Logger
message
- the messagethrowable
- the throwablepublic final boolean isFatalErrorEnabled()
isFatalErrorEnabled
in interface Logger
public final Logger getChildLogger(java.lang.String name)
IllegalArgumentException
if name has an empty element name
getChildLogger
in interface Logger
name
- the subname of this logger
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |