logging
Interface Log

All Known Implementing Classes:
AbstractLog4jLog, ChainedLog, DummyLog, FileLog, JAPDebug, SystemErrLog

public interface Log


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.
 

Method Detail

log

void log(int level,
         int type,
         java.lang.String mesg)
Output a debug message.

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)
txt - The message itself

setLogType

void setLogType(int type)
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).

Parameters:
type - The debug type (NUL, GUI, NET, THREAD, MISC)

getLogType

int getLogType()
Get the current debug type.


setLogLevel

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.

Parameters:
level - The debug level (EMERG, ALERT, EXCEPTION, ERR, WARNING, NOTICE, INFO, DEBUG)

getLogLevel

int getLogLevel()
Get the current debug level.