|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.log.NamedLogger
public class NamedLogger
Wrapper class for Logger that adds referrer information (logger name)
to the log entry.
Logger| Constructor Summary | |
|---|---|
NamedLogger(java.lang.Class clazz)
Initializes an instance of this class. |
|
NamedLogger(java.lang.String name)
Initializes an instance of this class. |
|
| Method Summary | |
|---|---|
void |
debug(java.lang.String message)
Logs the specified message with a debug level. |
void |
error(java.lang.String message,
java.lang.Throwable ex)
Logs the specified error. |
void |
error(java.lang.Throwable ex)
Logs the specified error. |
void |
info(java.lang.String message)
Logs the specified message with an info level. |
boolean |
isDebugEnabled()
Returns true if the logger level allows debug logging. |
void |
trace(java.lang.String message)
Logs the specified message with a trace level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedLogger(java.lang.Class clazz)
clazz - the the logger classpublic NamedLogger(java.lang.String name)
name - the logger name| Method Detail |
|---|
public void debug(java.lang.String message)
message - the message to be logged
public void error(java.lang.String message,
java.lang.Throwable ex)
message - the message to be loggedex - the error object to be loggedpublic void error(java.lang.Throwable ex)
ex - the error object to be loggedpublic void info(java.lang.String message)
message - the message to be loggedpublic boolean isDebugEnabled()
true if the logger level allows debug logging.
true if the logger level allows debug loggingpublic void trace(java.lang.String message)
message - the message to be logged
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||