kaos.core.util
Class Log4jLogger

java.lang.Object
  extended by kaos.core.util.Logger
      extended by kaos.core.util.Log4jLogger
All Implemented Interfaces:
java.io.Serializable

public class Log4jLogger
extends Logger

See Also:
Serialized Form

Field Summary
 
Fields inherited from class kaos.core.util.Logger
DEBUG, ERROR, FATAL, INFO, LEVEL_CAPTAIN, LEVEL_GENERAL, LEVEL_MAJOR, LEVEL_PRIVATE, WARN
 
Constructor Summary
Log4jLogger(org.apache.log4j.Logger logger)
           
 
Method Summary
static Priority getPriority(int kaosLevel)
           
 boolean isEnabledFor(int level)
           
 void logMessage(java.lang.String message, int level)
           
 void logMessage(java.lang.String message, java.lang.Throwable t, int level)
           
 
Methods inherited from class kaos.core.util.Logger
getLogger, getLoggerFactory, setLoggerFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jLogger

public Log4jLogger(org.apache.log4j.Logger logger)
Method Detail

getPriority

public static Priority getPriority(int kaosLevel)

logMessage

public void logMessage(java.lang.String message,
                       int level)
Specified by:
logMessage in class Logger

logMessage

public void logMessage(java.lang.String message,
                       java.lang.Throwable t,
                       int level)
Specified by:
logMessage in class Logger

isEnabledFor

public boolean isEnabledFor(int level)
Specified by:
isEnabledFor in class Logger