|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.log.AbstractLogger
Abstract implementation of Logger providing most of the common framework.
| Constructor Summary | |
protected |
AbstractLogger(String name)
Instantiate the abstract logger. |
| Method Summary | |
void |
debug(Object message)
Log a message at debug level. |
void |
debug(Object message,
Throwable exception)
Log a message at debug level. |
void |
error(Object message)
Log a message at error level. |
void |
error(Object message,
Throwable exception)
Log a message at error level. |
void |
fatal(Object message)
Log a message at fatal level. |
void |
fatal(Object message,
Throwable exception)
Log a message at fatal level. |
String |
getName()
Get the name of this logger. |
void |
info(Object message)
Log a message at info level. |
void |
info(Object message,
Throwable exception)
Log a message at info level. |
boolean |
isDebugEnabled()
True if debug is enabled for this logger. |
boolean |
isInfoEnabled()
True if debug is enabled for this logger. |
void |
log(Level level,
Object message)
Log a message at the given level. |
abstract void |
log(Level level,
Object message,
Throwable e)
Subclasses should implement this method to determine what to do when a client wants to log at a particular level. |
void |
warn(Object message)
Log a message at warning level. |
void |
warn(Object message,
Throwable exception)
Log a message at warning level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected AbstractLogger(String name)
| Method Detail |
public String getName()
getName in interface Loggerpublic boolean isDebugEnabled()
isDebugEnabled in interface Loggerpublic boolean isInfoEnabled()
isInfoEnabled in interface Logger
public void debug(Object message,
Throwable exception)
debug in interface Loggermessage - the message to logexception - the exception that caused the message to be generatedpublic void debug(Object message)
debug in interface Loggermessage - the message to log
public void info(Object message,
Throwable exception)
info in interface Loggermessage - the message to logexception - the exception that caused the message to be generatedpublic void info(Object message)
info in interface Loggermessage - the message to log
public void warn(Object message,
Throwable exception)
warn in interface Loggermessage - the message to logexception - the exception that caused the message to be generatedpublic void warn(Object message)
warn in interface Loggermessage - the message to log
public void error(Object message,
Throwable exception)
error in interface Loggermessage - the message to logexception - the exception that caused the message to be generatedpublic void error(Object message)
error in interface Loggermessage - the message to log
public void fatal(Object message,
Throwable exception)
fatal in interface Loggermessage - the message to logexception - the exception that caused the message to be generatedpublic void fatal(Object message)
fatal in interface Loggermessage - the message to log
public void log(Level level,
Object message)
log in interface Loggerlevel - the levelmessage - the message
public abstract void log(Level level,
Object message,
Throwable e)
log in interface Loggerlevel - the level to log at (see the fields of this class)message - the message to loge - the exception that caused the message (or null)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||