|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Logger
A Sample Logger interface that uses Java Util Logging levels It uses traditional methods: debug, error, info, trace and warn or equivalent finest, severe, info, fine and warning equivalent of Java Util Logging interface
Method Summary | |
---|---|
void |
debug(java.lang.String msg)
Log a message at the DEBUG level. |
void |
debug(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the DEBUG level with an accompanying message. |
void |
error(java.lang.String msg)
Log a message at the ERROR level. |
void |
error(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the ERROR level with an accompanying message. |
void |
fine(java.lang.String msg)
Log a message at the fine level. |
void |
fine(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the fine level with an accompanying message. |
void |
finest(java.lang.String msg)
Log a message at the finest level. |
void |
finest(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the FINEST level with an accompanying message. |
void |
info(java.lang.String msg)
Log a message at the INFO level. |
void |
info(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the INFO level with an accompanying message. |
void |
setLevel(java.util.logging.Level level)
|
void |
setLoggerName(java.lang.String loggerName)
|
void |
severe(java.lang.String msg)
Log a message at the SEVERE level. |
void |
severe(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the SEVERE level with an accompanying message. |
void |
trace(java.lang.String msg)
Log a message at the TRACE level. |
void |
trace(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the TRACE level with an accompanying message. |
void |
warn(java.lang.String msg)
Log a message at the WARN level. |
void |
warn(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the WARN level with an accompanying message. |
Method Detail |
---|
void setLoggerName(java.lang.String loggerName)
void setLevel(java.util.logging.Level level)
void trace(java.lang.String msg)
void fine(java.lang.String msg)
void trace(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid fine(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid debug(java.lang.String msg)
msg
- the message string to be loggedvoid finest(java.lang.String msg)
msg
- the message string to be loggedvoid debug(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid finest(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid info(java.lang.String msg)
msg
- the message string to be loggedvoid info(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid warn(java.lang.String msg)
msg
- the message string to be loggedvoid warn(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid error(java.lang.String msg)
msg
- the message string to be loggedvoid severe(java.lang.String msg)
msg
- the message string to be loggedvoid error(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid severe(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to log
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |