|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.log.StdoutLogger
Logs message to the System.out OutputStream. By default, the "MessageLevelMessageFilter" is installed and used with all message levels enabled.
| Field Summary | |
static StdoutLogger |
DEFAULT_STDOUT_LOGGER
Most objects create a StdoutLogger object as there default logger as to avoid NullPointerExceptions when attempting to log information However, the end result is that each object create's it's own logger that is basically the same accross the board. |
protected MessageFilter |
messageFilter
The MessageFilter used to discriminate messages to be logged. |
protected Properties |
properties
Configuration Properties. |
protected boolean |
verbose
Boolean flag that indicates if the logger is printing verbose information such as the class name |
| Fields inherited from interface com.cafesoft.core.log.Logger |
DEBUG, ERROR, FATAL, INFO, WARNING |
| Constructor Summary | |
StdoutLogger()
Create a new StdoutLogger. |
|
| 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 properties)
Initialize the Logger. |
void |
setMessageFilter(MessageFilter messageFilter)
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 |
| Field Detail |
public static final StdoutLogger DEFAULT_STDOUT_LOGGER
protected Properties properties
protected boolean verbose
protected MessageFilter messageFilter
| Constructor Detail |
public StdoutLogger()
| Method Detail |
public void initialize(Properties properties)
throws LoggerException
initialize in interface Loggerproperties - initialization Properties
LoggerException - if an error initializing the Loggerpublic void setMessageFilter(MessageFilter messageFilter)
setMessageFilter in interface LoggermessageFilter - the MessageFilter that discriminates the messages to
be logged
public void debug(Object source,
String message)
debug in interface Loggersource - the source of the messagemessage - the debug message to be logged
public void debug(Object source,
String message,
Throwable throwable)
debug in interface Loggersource - the source of the messagemessage - the debug message to be loggedthrowable - an Exception or Error to be logged
public void info(Object source,
String message)
info in interface Loggersource - the source of the messagemessage - the info message to be logged
public void info(Object source,
String message,
Throwable throwable)
info in interface Loggersource - the source of the messagemessage - the info message to be loggedthrowable - an Exception or Error to be logged
public void warning(Object source,
String message)
warning in interface Loggersource - the source of the messagemessage - the info message to be logged
public void warning(Object source,
String message,
Throwable throwable)
warning in interface Loggersource - the source of the messagemessage - the warning message to be loggedthrowable - an Exception or Error to be logged
public void error(Object source,
String message)
error in interface Loggersource - the source of the messagemessage - the info message to be logged
public void error(Object source,
String message,
Throwable throwable)
error in interface Loggersource - the source of the messagemessage - the error message to be loggedthrowable - an Exception or Error to be logged
public void fatal(Object source,
String message)
fatal in interface Loggersource - the source of the messagemessage - the info message to be logged
public void fatal(Object source,
String message,
Throwable throwable)
fatal in interface Loggersource - the source of the messagemessage - the fatal message to be loggedthrowable - an Exception or Error to be logged
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||