Package org.nineml.logging
Class SystemLogger
java.lang.Object
org.nineml.logging.Logger
org.nineml.logging.SystemLogger
The system logger routes messages to another logging framework.
This class supports either configuration with org.slf4j.Logger or
configuration directly with a java.util.logging.Logger.
This logger makes it easy to configure logging through a standard
logging framework, as might be present on a Java application server. By default
the logger uses the org.slf4j.LoggerFactory to create a logger. This logger
can be supported at runtime by a wide variety of concrete backend classes. For details
on how SLF4J finds a logging backend, see their documentation.
Alternatively, if you instantiate the SystemLogger with a
java.util.logging.Logger directly, it will use that.
-
Field Summary
Fields inherited from class org.nineml.logging.Logger
DEBUG, defaultLogLevelProperty, ERROR, INFO, logcategory, logLevelsProperty, SILENT, TRACE, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIssue a debug message.voidIssue an error message.voidIssue an informational message.voidIssue a trace message.voidIssue a warning message.Methods inherited from class org.nineml.logging.Logger
clearLogLevels, getDefaultLogLevel, getLogCategories, getLogLevel, readSystemProperties, setDefaultLogLevel, setDefaultLogLevel, setLogLevel, setLogLevel, setLogLevels
-
Constructor Details
-
SystemLogger
public SystemLogger() -
SystemLogger
-
-
Method Details
-
error
Description copied from class:LoggerIssue an error message. -
warn
Description copied from class:LoggerIssue a warning message. -
info
Description copied from class:LoggerIssue an informational message. -
debug
Description copied from class:LoggerIssue a debug message. -
trace
Description copied from class:LoggerIssue a trace message.
-