logging
Class ChainedLog

java.lang.Object
  extended by logging.ChainedLog
All Implemented Interfaces:
Log

public class ChainedLog
extends java.lang.Object
implements Log

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

m_Log1

Log m_Log1

m_Log2

Log m_Log2
Constructor Detail

ChainedLog

public ChainedLog(Log log1,
                  Log log2)
Method Detail

log

public void log(int level,
                int type,
                java.lang.String mesg)
Description copied from interface: Log
Output a debug message.

Specified by:
log in interface Log
Parameters:
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)

setLogType

public void setLogType(int type)
Description copied from interface: Log
Set the debugging type you like to output. To activate more than one type you simly add the types like this setDebugType(JAPDebug.GUI+JAPDebug.NET).

Specified by:
setLogType in interface Log
Parameters:
type - The debug type (NUL, GUI, NET, THREAD, MISC)

getLogType

public int getLogType()
Description copied from interface: Log
Get the current debug type.

Specified by:
getLogType in interface Log

setLogLevel

public void setLogLevel(int level)
Description copied from interface: Log
Set the debugging level you would like to output. The possible parameters are (EMERG, ALERT, EXCEPTION, ERR, WARNING, NOTICE, INFO, DEBUG). DEBUG means output all messages, EMERG means only emergency messages.

Specified by:
setLogLevel in interface Log
Parameters:
level - The debug level (EMERG, ALERT, EXCEPTION, ERR, WARNING, NOTICE, INFO, DEBUG)

getLogLevel

public int getLogLevel()
Description copied from interface: Log
Get the current debug level.

Specified by:
getLogLevel in interface Log