|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.log.CamsTraceLogger
A specialized Logger object that will send debug messages that are of the level INFO and DEBUG to a specified file. However, the Logger object will also send messages of the levels WARNING, ERROR, and FATAL to both the same specified file and to the System.err stream. Configuration properties supported by this Logger include:
[INFO ] Sample log message Class Name: com.cafesoft.cams.log.CamsTraceLogger Method Name: info() Line Number: 121 Timestamp: 25 Jul 2002 11:02:36,339If the "logger.verbose" flag is false ONLY messages with the WARNING, ERROR, and FATAL message level will use the verbose format, while DEBUG and INFO level messages will use the following format:
[INFO ] Sample Log Message
| Field Summary |
| Fields inherited from interface com.cafesoft.core.log.Logger |
DEBUG, ERROR, FATAL, INFO, WARNING |
| Constructor Summary | |
CamsTraceLogger()
|
|
| Method Summary | |
void |
debug(Object source,
String message)
Log a debug message from the specified source object. |
void |
debug(Object source,
String message,
Throwable throwable)
Log a debug message from the specified source object. |
void |
error(Object source,
String message)
Log a error message from the specified source object. |
void |
error(Object source,
String message,
Throwable throwable)
Log a error message from the specified source object. |
void |
fatal(Object source,
String message)
Log a fatal message from the specified source object. |
void |
fatal(Object source,
String message,
Throwable throwable)
Log a fatal message from the specified source object. |
void |
info(Object source,
String message)
Log an info message from the specified source object. |
void |
info(Object source,
String message,
Throwable throwable)
Log an info message from the specified source object. |
void |
initialize(Properties prop)
Initialize the Logger. |
void |
setMessageFilter(MessageFilter filter)
Set a message filter. |
void |
warning(Object source,
String message)
Log a warning message from the specified source object. |
void |
warning(Object source,
String message,
Throwable throwable)
Log a warning message from the specified source object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CamsTraceLogger()
| Method Detail |
public void initialize(Properties prop)
throws LoggerException
initialize in interface Loggerprop - initialization Properties.
LoggerException - if an error initializing the Logger.public final void setMessageFilter(MessageFilter filter)
setMessageFilter in interface Loggerfilter - the MessageFilter that discriminates the
messages to be logged.
public void debug(Object source,
String message)
debug in interface Loggersource - the source of the message.message - the debug message to be logged.
public void debug(Object source,
String message,
Throwable throwable)
debug in interface Loggersource - the source of the message.message - the debug message to be logged.throwable - an Exception or Error to be logged.
public void info(Object source,
String message)
info in interface Loggersource - the source of the message.message - the info message to be logged.
public void info(Object source,
String message,
Throwable throwable)
info in interface Loggersource - the source of the message.message - the info message to be logged.throwable - an Exception or Error to be logged.
public void warning(Object source,
String message)
warning in interface Loggersource - the source of the message.message - the info message to be logged.
public void warning(Object source,
String message,
Throwable throwable)
warning in interface Loggersource - the source of the message.message - the warning message to be logged.throwable - an Exception or Error to be logged.
public void error(Object source,
String message)
error in interface Loggersource - the source of the message.message - the info message to be logged.
public void error(Object source,
String message,
Throwable throwable)
error in interface Loggersource - the source of the message.message - the error message to be logged.throwable - an Exception or Error to be logged.
public void fatal(Object source,
String message)
fatal in interface Loggersource - the source of the message.message - the info message to be logged.
public void fatal(Object source,
String message,
Throwable throwable)
fatal in interface Loggersource - the source of the message.message - the fatal message to be logged.throwable - an Exception or Error to be logged.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||