|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object logging.ChainedLog
public class ChainedLog
Writes log output to two Log instances
Field Summary | |
---|---|
(package private) Log |
m_Log1
|
(package private) Log |
m_Log2
|
Constructor Summary | |
---|---|
ChainedLog(Log log1,
Log log2)
|
Method Summary | |
---|---|
int |
getLogLevel()
Get the current debug level. |
int |
getLogType()
Get the current debug type. |
void |
log(int level,
int type,
java.lang.String mesg)
Output a debug message. |
void |
setLogLevel(int level)
Set the debugging level you would like to output. |
void |
setLogType(int type)
Set the debugging type you like to output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Log m_Log1
Log m_Log2
Constructor Detail |
---|
public ChainedLog(Log log1, Log log2)
Method Detail |
---|
public void log(int level, int type, java.lang.String mesg)
Log
log
in interface Log
level
- The level of the debugging message (EMERG,ALERT,CRIT,ERR,WARNING,NOTICE,INFO,DEBUG)type
- The type of the debugging message (GUI, NET, THREAD, MISC)public void setLogType(int type)
Log
setDebugType(JAPDebug.GUI+JAPDebug.NET)
.
setLogType
in interface Log
type
- The debug type (NUL, GUI, NET, THREAD, MISC)public int getLogType()
Log
getLogType
in interface Log
public void setLogLevel(int level)
Log
setLogLevel
in interface Log
level
- The debug level (EMERG, ALERT, EXCEPTION, ERR, WARNING, NOTICE, INFO, DEBUG)public int getLogLevel()
Log
getLogLevel
in interface Log
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |