|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.services.log.console.ConsoleLogger
Copyright 2003 Sapient
Field Summary | |
private String |
className
Name of the class associated with this logger |
private static LogView |
console
Reference to the view shared by all ConsoleLogger |
Constructor Summary | |
ConsoleLogger(String name)
Constructor |
Method Summary | |
void |
debug(Object message)
|
void |
debug(Object message,
Throwable exception)
|
protected void |
enqueueMessage(String sourceClass,
SeverityEnum severity,
Object message)
|
void |
error(Object message)
|
void |
error(Object message,
Throwable exception)
|
void |
fatal(Object message)
|
void |
fatal(Object message,
Throwable exception)
|
void |
info(Object message)
|
void |
info(Object message,
Throwable exception)
|
boolean |
isDebugEnabled()
|
boolean |
isErrorEnabled()
|
boolean |
isFatalEnabled()
|
boolean |
isInfoEnabled()
|
protected boolean |
isLogging()
This logger logs messages at all severities |
boolean |
isTraceEnabled()
|
boolean |
isWarnEnabled()
|
void |
trace(Object message)
|
void |
trace(Object message,
Throwable exception)
|
void |
warn(Object message)
|
void |
warn(Object message,
Throwable exception)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static LogView console
ConsoleLogger
private String className
Constructor Detail |
public ConsoleLogger(String name)
name
- The class name with which this logger is associatedMethod Detail |
public void debug(Object message)
debug
in interface org.apache.commons.logging.Log
Log.debug(Object)
public void error(Object message)
error
in interface org.apache.commons.logging.Log
Log.error(Object)
public void fatal(Object message)
fatal
in interface org.apache.commons.logging.Log
Log.fatal(Object)
public void info(Object message)
info
in interface org.apache.commons.logging.Log
Log.info(Object)
public void trace(Object message)
trace
in interface org.apache.commons.logging.Log
Log.trace(Object)
public void warn(Object message)
warn
in interface org.apache.commons.logging.Log
Log.warn(Object)
protected void enqueueMessage(String sourceClass, SeverityEnum severity, Object message)
public boolean isDebugEnabled()
isDebugEnabled
in interface org.apache.commons.logging.Log
Log.isDebugEnabled()
public boolean isErrorEnabled()
isErrorEnabled
in interface org.apache.commons.logging.Log
Log.isErrorEnabled()
public boolean isFatalEnabled()
isFatalEnabled
in interface org.apache.commons.logging.Log
Log.isFatalEnabled()
public boolean isInfoEnabled()
isInfoEnabled
in interface org.apache.commons.logging.Log
Log.isInfoEnabled()
public boolean isTraceEnabled()
isTraceEnabled
in interface org.apache.commons.logging.Log
Log.isTraceEnabled()
public boolean isWarnEnabled()
isWarnEnabled
in interface org.apache.commons.logging.Log
Log.isWarnEnabled()
protected boolean isLogging()
public void debug(Object message, Throwable exception)
debug
in interface org.apache.commons.logging.Log
Log.debug(Object, Throwable)
public void error(Object message, Throwable exception)
error
in interface org.apache.commons.logging.Log
Log.error(Object, Throwable)
public void fatal(Object message, Throwable exception)
fatal
in interface org.apache.commons.logging.Log
Log.fatal(Object, Throwable)
public void info(Object message, Throwable exception)
info
in interface org.apache.commons.logging.Log
Log.info(Object, Throwable)
public void trace(Object message, Throwable exception)
trace
in interface org.apache.commons.logging.Log
Log.trace(Object, Throwable)
public void warn(Object message, Throwable exception)
warn
in interface org.apache.commons.logging.Log
Log.warn(Object, Throwable)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |