|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dynamide.SessionWebMacroLogTarget
public class SessionWebMacroLogTarget
Constructor Summary | |
---|---|
SessionWebMacroLogTarget()
|
Method Summary | |
---|---|
void |
addObserver(org.webmacro.util.LogSystem ls)
A LogSystem will register itself though this method in order to detect changes to the LogTarget. |
java.lang.String |
dump()
|
void |
flush()
Flush the log. |
void |
log(java.util.Date date,
java.lang.String type,
java.lang.String level,
java.lang.String message,
java.lang.Throwable e)
|
void |
log(java.lang.String message)
|
void |
removeObserver(org.webmacro.util.LogSystem ls)
A LogSystem may remove itself through this method if it de-registeres the LogTarget. |
boolean |
subscribe(java.lang.String category,
java.lang.String type,
int logLevel)
Return true or false if this log target would like to receive log messages for the named category, type, and logLevel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionWebMacroLogTarget() throws java.io.FileNotFoundException
java.io.FileNotFoundException
Method Detail |
---|
public java.lang.String dump()
public void log(java.lang.String message)
public void log(java.util.Date date, java.lang.String type, java.lang.String level, java.lang.String message, java.lang.Throwable e)
log
in interface org.webmacro.util.LogTarget
public void flush()
flush
in interface org.webmacro.util.LogTarget
public boolean subscribe(java.lang.String category, java.lang.String type, int logLevel)
The logLevel you will be called with is one of the integers Log.ALL, Log.DEBUG, Log.INFO, Log.NOTICE, Log.WARNING, Log.ERROR, and Log.NONE in ascending order (Log.ERROR is a higher number than Log.WARNING which is a higher number than Log.DEBUG). In other words, the higher the logLevel the more important the log message is.
subscribe
in interface org.webmacro.util.LogTarget
public void addObserver(org.webmacro.util.LogSystem ls)
addObserver
in interface org.webmacro.util.LogTarget
public void removeObserver(org.webmacro.util.LogSystem ls)
removeObserver
in interface org.webmacro.util.LogTarget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |