Chapter 16. Logging in DODS

DODS suport loggig through concepts of Logger and LogChannel (from com.lutris.logging package ).

In this version, DODS ships with two: com.lutris.logging.StandardLogger, and com.lutris.logging.Log4jLogger implementation of Logger.

To support logging in DODS application it's necessary to set parameters in application configuration file:

Then if you using com.lutris.logging.Log4jLogger Logger implementation class you need to set parameter :

If DatabaseManager.LogClassName is set to com.lutris.logging.StandardLogger you need to set :

Example:

DatabaseManager.LogClassName = com.lutris.logging.StandardLogger
DatabaseManager.LogFile = discRack.log
DatabaseManager.LogToFile[] = EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, INFO
DatabaseManager.LogToStderr[] = EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, INFO, DEBUG

or

DatabaseManager.LogClassName = com.lutris.logging.Log4jLogger
DatabaseManager.Log4j = log4j.xml

If you use DODS in Enhydra, Enhydra logger will be used as a default logger.