org.exoplatform.services.log.impl
Class ExoLog

java.lang.Object
  extended by org.exoplatform.services.log.impl.ExoLog
All Implemented Interfaces:
org.apache.commons.logging.Log

public class ExoLog
extends Object
implements org.apache.commons.logging.Log

Created by the Exo Development team. Author : Mestrallet Benjamin benjmestrallet@users.sourceforge.net Date: 14 nov. 2003 Time: 21:47:20


Field Summary
static int DEBUG
           
static int ERROR
           
static int ERROR_BUFFER_SIZE
           
static int FATAL
           
static int INFO
           
static int LOG_BUFFER_SIZE
           
static int TRACE
           
static int WARN
           
 
Constructor Summary
ExoLog(String name, int level)
           
 
Method Summary
 void debug(Object message)
           
 void debug(Object message, Throwable t)
           
 void error(Object message)
           
 void error(Object message, Throwable t)
           
 void fatal(Object message)
           
 void fatal(Object message, Throwable t)
           
static List getErrorBuffer()
           
 int getLevel()
           
static List getLogBuffer()
           
 String getLogCategory()
           
 void info(Object message)
           
 void info(Object message, Throwable t)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void setLevel(int level)
           
 void trace(Object message)
           
 void trace(Object message, Throwable t)
           
 void warn(Object message)
           
 void warn(Object message, Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FATAL

public static int FATAL

ERROR

public static int ERROR

WARN

public static int WARN

INFO

public static int INFO

DEBUG

public static int DEBUG

TRACE

public static int TRACE

LOG_BUFFER_SIZE

public static int LOG_BUFFER_SIZE

ERROR_BUFFER_SIZE

public static int ERROR_BUFFER_SIZE
Constructor Detail

ExoLog

public ExoLog(String name,
              int level)
Method Detail

getLogCategory

public String getLogCategory()

getLevel

public int getLevel()

setLevel

public void setLevel(int level)

trace

public void trace(Object message)
Specified by:
trace in interface org.apache.commons.logging.Log

trace

public void trace(Object message,
                  Throwable t)
Specified by:
trace in interface org.apache.commons.logging.Log

debug

public void debug(Object message)
Specified by:
debug in interface org.apache.commons.logging.Log

debug

public void debug(Object message,
                  Throwable t)
Specified by:
debug in interface org.apache.commons.logging.Log

info

public void info(Object message)
Specified by:
info in interface org.apache.commons.logging.Log

info

public void info(Object message,
                 Throwable t)
Specified by:
info in interface org.apache.commons.logging.Log

warn

public void warn(Object message)
Specified by:
warn in interface org.apache.commons.logging.Log

warn

public void warn(Object message,
                 Throwable t)
Specified by:
warn in interface org.apache.commons.logging.Log

error

public void error(Object message)
Specified by:
error in interface org.apache.commons.logging.Log

error

public void error(Object message,
                  Throwable t)
Specified by:
error in interface org.apache.commons.logging.Log

fatal

public void fatal(Object message)
Specified by:
fatal in interface org.apache.commons.logging.Log

fatal

public void fatal(Object message,
                  Throwable t)
Specified by:
fatal in interface org.apache.commons.logging.Log

isDebugEnabled

public final boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface org.apache.commons.logging.Log

isErrorEnabled

public final boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface org.apache.commons.logging.Log

isFatalEnabled

public final boolean isFatalEnabled()
Specified by:
isFatalEnabled in interface org.apache.commons.logging.Log

isInfoEnabled

public final boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface org.apache.commons.logging.Log

isTraceEnabled

public final boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface org.apache.commons.logging.Log

isWarnEnabled

public final boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface org.apache.commons.logging.Log

getLogBuffer

public static List getLogBuffer()

getErrorBuffer

public static List getErrorBuffer()


Copyright © 2009 eXo Platform SAS. All Rights Reserved.