logging
Class SystemErrLog

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

public class SystemErrLog
extends java.lang.Object
implements Log


Field Summary
private  int m_logLevel
           
private  int m_logType
           
 
Constructor Summary
SystemErrLog()
           
SystemErrLog(int a_logLevel, int a_logType)
           
 
Method Summary
 int getLogLevel()
          Get the current debug level.
 int getLogType()
          Get the current debug type.
 void log(int a_logLevel, int a_logType, java.lang.String msg)
          Output a debug message.
 void setLogLevel(int a_logLevel)
          Set the debugging level you would like to output.
 void setLogType(int a_logType)
          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_logLevel

private int m_logLevel

m_logType

private int m_logType
Constructor Detail

SystemErrLog

public SystemErrLog()

SystemErrLog

public SystemErrLog(int a_logLevel,
                    int a_logType)
Method Detail

log

public void log(int a_logLevel,
                int a_logType,
                java.lang.String msg)
Description copied from interface: Log
Output a debug message.

Specified by:
log in interface Log
Parameters:
a_logLevel - The level of the debugging message (EMERG,ALERT,CRIT,ERR,WARNING,NOTICE,INFO,DEBUG)
a_logType - The type of the debugging message (GUI, NET, THREAD, MISC)

setLogLevel

public void setLogLevel(int a_logLevel)
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:
a_logLevel - The debug level (EMERG, ALERT, EXCEPTION, ERR, WARNING, NOTICE, INFO, DEBUG)

setLogType

public void setLogType(int a_logType)
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:
a_logType - The debug type (NUL, GUI, NET, THREAD, MISC)

getLogType

public int getLogType()
Get the current debug type.

Specified by:
getLogType in interface Log

getLogLevel

public int getLogLevel()
Get the current debug level.

Specified by:
getLogLevel in interface Log