Package org.nineml.logging
Class CachingLogger
- java.lang.Object
-
- org.nineml.logging.Logger
-
- org.nineml.logging.CachingLogger
-
public class CachingLogger extends Logger
The caching logger stores all of the messages.You can retrieve them by calling
getMessages
.
-
-
Field Summary
-
Fields inherited from class org.nineml.logging.Logger
DEBUG, defaultLogLevelProperty, ERROR, INFO, logcategory, logLevelsProperty, SILENT, TRACE, WARNING
-
-
Constructor Summary
Constructors Constructor Description CachingLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.nineml.logging.Logger
clearLogLevels, getDefaultLogLevel, getLogCategories, getLogLevel, readSystemProperties, setDefaultLogLevel, setDefaultLogLevel, setLogLevel, setLogLevel, setLogLevels
-
-
-
-
Method Detail
-
getMessages
public java.util.List<java.lang.String> getMessages()
-
clearMessages
public void clearMessages()
-
error
public void error(java.lang.String category, java.lang.String format, java.lang.Object... params)
Description copied from class:Logger
Issue an error message.
-
warn
public void warn(java.lang.String category, java.lang.String format, java.lang.Object... params)
Description copied from class:Logger
Issue a warning message.
-
info
public void info(java.lang.String category, java.lang.String format, java.lang.Object... params)
Description copied from class:Logger
Issue an informational message.
-
debug
public void debug(java.lang.String category, java.lang.String format, java.lang.Object... params)
Description copied from class:Logger
Issue a debug message.
-
trace
public void trace(java.lang.String category, java.lang.String format, java.lang.Object... params)
Description copied from class:Logger
Issue a trace message.
-
-