|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.chaperon.common.ConsoleLog
public final class ConsoleLog
Logger sending everything to the standard output streams. This is mainly for the cases when you have a utility that does not have a logger to supply.
Field Summary | |
---|---|
static int |
DEBUG
|
static int |
ERROR
|
static int |
FATAL
|
static int |
INFO
|
static int |
TRACE
|
static int |
WARN
|
Constructor Summary | |
---|---|
ConsoleLog()
|
|
ConsoleLog(int level)
|
Method Summary | |
---|---|
void |
debug(java.lang.Object message)
Log a message with debug log level. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Log an error with debug log level. |
void |
error(java.lang.Object message)
Log a message with error log level. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Log an error with error log level. |
void |
fatal(java.lang.Object message)
Log a message with fatal log level. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Log an error with fatal log level. |
void |
info(java.lang.Object message)
Log a message with info log level. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Log an error with info log level. |
boolean |
isDebugEnabled()
Is debug logging currently enabled? |
boolean |
isErrorEnabled()
Is error logging currently enabled? |
boolean |
isFatalEnabled()
Is fatal logging currently enabled? |
boolean |
isInfoEnabled()
Is info logging currently enabled? |
boolean |
isTraceEnabled()
Is trace logging currently enabled? |
boolean |
isWarnEnabled()
Is warning logging currently enabled? |
void |
trace(java.lang.Object message)
Log a message with trace log level. |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Log an error with trace log level. |
void |
warn(java.lang.Object message)
Log a message with warn log level. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Log an error with warn log level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TRACE
public static final int DEBUG
public static final int INFO
public static final int WARN
public static final int ERROR
public static final int FATAL
Constructor Detail |
---|
public ConsoleLog()
public ConsoleLog(int level)
Method Detail |
---|
public void trace(java.lang.Object message)
Log a message with trace log level.
trace
in interface org.apache.commons.logging.Log
message
- log this messagepublic void trace(java.lang.Object message, java.lang.Throwable t)
Log an error with trace log level.
trace
in interface org.apache.commons.logging.Log
message
- log this messaget
- log this causepublic boolean isTraceEnabled()
Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
String
concatination) when the log level is more than trace.
isTraceEnabled
in interface org.apache.commons.logging.Log
public void debug(java.lang.Object message)
Log a message with debug log level.
debug
in interface org.apache.commons.logging.Log
message
- log this messagepublic void debug(java.lang.Object message, java.lang.Throwable t)
Log an error with debug log level.
debug
in interface org.apache.commons.logging.Log
message
- log this messaget
- log this causepublic boolean isDebugEnabled()
Is debug logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
String
concatination) when the log level is more than debug.
isDebugEnabled
in interface org.apache.commons.logging.Log
public void info(java.lang.Object message)
Log a message with info log level.
info
in interface org.apache.commons.logging.Log
message
- log this messagepublic void info(java.lang.Object message, java.lang.Throwable t)
Log an error with info log level.
info
in interface org.apache.commons.logging.Log
message
- log this messaget
- log this causepublic boolean isInfoEnabled()
Is info logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
String
concatination) when the log level is more than info.
isInfoEnabled
in interface org.apache.commons.logging.Log
public void warn(java.lang.Object message)
Log a message with warn log level.
warn
in interface org.apache.commons.logging.Log
message
- log this messagepublic void warn(java.lang.Object message, java.lang.Throwable t)
Log an error with warn log level.
warn
in interface org.apache.commons.logging.Log
message
- log this messaget
- log this causepublic boolean isWarnEnabled()
Is warning logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
String
concatination) when the log level is more than warning.
isWarnEnabled
in interface org.apache.commons.logging.Log
public void error(java.lang.Object message)
Log a message with error log level.
error
in interface org.apache.commons.logging.Log
message
- log this messagepublic void error(java.lang.Object message, java.lang.Throwable t)
Log an error with error log level.
error
in interface org.apache.commons.logging.Log
message
- log this messaget
- log this causepublic boolean isErrorEnabled()
Is error logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
String
concatination) when the log level is more than error.
isErrorEnabled
in interface org.apache.commons.logging.Log
public void fatal(java.lang.Object message)
Log a message with fatal log level.
fatal
in interface org.apache.commons.logging.Log
message
- log this messagepublic void fatal(java.lang.Object message, java.lang.Throwable t)
Log an error with fatal log level.
fatal
in interface org.apache.commons.logging.Log
message
- log this messaget
- log this causepublic boolean isFatalEnabled()
Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations (for example,
String
concatination) when the log level is more than fatal.
isFatalEnabled
in interface org.apache.commons.logging.Log
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |