public class CachingLogger extends Logger
You can retrieve them by calling getMessages
.
DEBUG, defaultLogLevelProperty, ERROR, INFO, logcategory, logLevelsProperty, SILENT, TRACE, WARNING
Constructor and Description |
---|
CachingLogger() |
Modifier and Type | Method and Description |
---|---|
void |
clearMessages() |
void |
debug(java.lang.String category,
java.lang.String format,
java.lang.Object... params)
Issue a debug message.
|
void |
error(java.lang.String category,
java.lang.String format,
java.lang.Object... params)
Issue an error message.
|
java.util.List<java.lang.String> |
getMessages() |
void |
info(java.lang.String category,
java.lang.String format,
java.lang.Object... params)
Issue an informational message.
|
void |
trace(java.lang.String category,
java.lang.String format,
java.lang.Object... params)
Issue a trace message.
|
void |
warn(java.lang.String category,
java.lang.String format,
java.lang.Object... params)
Issue a warning message.
|
clearLogLevels, getDefaultLogLevel, getLogCategories, getLogLevel, readSystemProperties, setDefaultLogLevel, setDefaultLogLevel, setLogLevel, setLogLevel, setLogLevels
public java.util.List<java.lang.String> getMessages()
public void clearMessages()
public void error(java.lang.String category, java.lang.String format, java.lang.Object... params)
Logger
public void warn(java.lang.String category, java.lang.String format, java.lang.Object... params)
Logger
public void info(java.lang.String category, java.lang.String format, java.lang.Object... params)
Logger
public void debug(java.lang.String category, java.lang.String format, java.lang.Object... params)
Logger