kaos.core.util
Class Logger

java.lang.Object
  extended by kaos.core.util.Logger
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CougaarLogger, JavaLogger, Log4jLogger, SimpleLogger

public abstract class Logger
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int DEBUG
           
static int ERROR
           
static int FATAL
           
static int INFO
           
static int LEVEL_CAPTAIN
           
static int LEVEL_GENERAL
           
static int LEVEL_MAJOR
           
static int LEVEL_PRIVATE
           
static int WARN
           
 
Constructor Summary
Logger()
           
 
Method Summary
static Logger getLogger(java.lang.Object requestor)
           
static LoggerFactory getLoggerFactory()
           
abstract  boolean isEnabledFor(int level)
           
abstract  void logMessage(java.lang.String pMessage, int pLevel)
           
abstract  void logMessage(java.lang.String message, java.lang.Throwable t, int level)
           
static void setLoggerFactory(LoggerFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FATAL

public static final int FATAL
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

WARN

public static final int WARN
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values

DEBUG

public static final int DEBUG
See Also:
Constant Field Values

LEVEL_GENERAL

public static final int LEVEL_GENERAL
See Also:
Constant Field Values

LEVEL_MAJOR

public static final int LEVEL_MAJOR
See Also:
Constant Field Values

LEVEL_CAPTAIN

public static final int LEVEL_CAPTAIN
See Also:
Constant Field Values

LEVEL_PRIVATE

public static final int LEVEL_PRIVATE
See Also:
Constant Field Values
Constructor Detail

Logger

public Logger()
Method Detail

setLoggerFactory

public static void setLoggerFactory(LoggerFactory factory)

getLoggerFactory

public static LoggerFactory getLoggerFactory()

getLogger

public static Logger getLogger(java.lang.Object requestor)

isEnabledFor

public abstract boolean isEnabledFor(int level)

logMessage

public abstract void logMessage(java.lang.String pMessage,
                                int pLevel)

logMessage

public abstract void logMessage(java.lang.String message,
                                java.lang.Throwable t,
                                int level)