logging
Class DummyLog

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

public class DummyLog
extends java.lang.Object
implements Log


Constructor Summary
DummyLog()
           
 
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 msg)
          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
 

Constructor Detail

DummyLog

public DummyLog()
Method Detail

log

public void log(int level,
                int type,
                java.lang.String msg)
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()
Get the current debug type.

Specified by:
getLogType in interface Log

setLogLevel

public void setLogLevel(int level)
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()
Get the current debug level.

Specified by:
getLogLevel in interface Log