|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webmacro.util.LogSource
A log is a simple recipient of information about the system. It does not display or render this information, but instead passes it back to a set of log targets. A log is administered by a LogManager so you cannot instantiate one directly. Instead you must ask the Logmanager or a log instance.
Method Summary | |
void |
debug(java.lang.String msg)
A shortform for debug(msg,null) |
void |
debug(java.lang.String msg,
java.lang.Throwable e)
Debug messages are incidental programmer notes which should not be enabled in a production system. |
void |
error(java.lang.String msg)
A shortform for error(msg,null) |
void |
error(java.lang.String msg,
java.lang.Throwable e)
An error is a major failure within the system. |
java.lang.String |
getCategory()
The category for this log source, as it woudl print in the log. |
java.lang.String |
getDescription()
Get a description of this log source: what kind of messages does it contain? This can be a sentence or so of information about what kind of messages this log represents. |
java.lang.String |
getType()
The type of this log source, as it would print in the log. |
boolean |
hasTargets()
|
void |
info(java.lang.String msg)
Info is fairly unimportant information about routine processing within the system. |
protected void |
log(int level,
java.lang.String msg,
java.lang.Throwable e)
|
boolean |
loggingDebug()
Ask the log system if it wants these kinds of log messages. |
boolean |
loggingInfo()
|
boolean |
loggingNotice()
|
boolean |
loggingWarning()
|
void |
notice(java.lang.String msg)
Notices are important information about routine processing within the system. |
java.lang.String |
toString()
Explain myself |
void |
warning(java.lang.String msg)
A shortform for warning(msg,null) |
void |
warning(java.lang.String msg,
java.lang.Throwable e)
Warnings are messages outlining unexpected non-routine events within the system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public final boolean hasTargets()
public java.lang.String getType()
public java.lang.String getDescription()
public java.lang.String getCategory()
public java.lang.String toString()
public void debug(java.lang.String msg, java.lang.Throwable e)
debug
in interface Log
public void debug(java.lang.String msg)
debug
in interface Log
public void info(java.lang.String msg)
info
in interface Log
public void notice(java.lang.String msg)
notice
in interface Log
public void warning(java.lang.String msg, java.lang.Throwable e)
warning
in interface Log
public void warning(java.lang.String msg)
warning
in interface Log
public void error(java.lang.String msg)
error
in interface Log
public void error(java.lang.String msg, java.lang.Throwable e)
error
in interface Log
public boolean loggingDebug()
Log
loggingDebug
in interface Log
public boolean loggingInfo()
loggingInfo
in interface Log
public boolean loggingNotice()
loggingNotice
in interface Log
public boolean loggingWarning()
loggingWarning
in interface Log
protected void log(int level, java.lang.String msg, java.lang.Throwable e)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |