4.16.4 Logging
4.16.4.1 Logging API
In the repository server all logging is performed using the commons-logging API.
It is then up to the environment in which the repository server is started to set up a concrete logging implementation.
In the Daisy Runtime CLI we replaced the commons-logging API by its clone jcl-over-slf4j, the actual logging engine is log4j.
4.16.4.2 Logging tips
The Daisy Runtime CLI has some handy options for logging, mostly intended for use during Daisy development:
-
-l (lowercase L) enables logging to the console, for the log level specified as argument (i.e. debug, info, warn, error)
-
-m specifies the category for which to enable this logging (optional, by default it's for the root logger)
So for example:
start-repository -l debug
will cause all debug log to be sent to the console (during startup this will be quite a lot). To only see logging produced by Daisy, one could do:
start-repository -l debug -m org.outerj.daisy
Previous