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:
DatabaseManager.LogClassName - Fully qualified name of class implementing Logger ( for now com.lutris.logging.StandardLogger or com.lutris.logging.Log4jLogger)
Then if you using com.lutris.logging.Log4jLogger Logger implementation class you need to set parameter :
DatabaseManager.Log4j - Pathname of Log4j XML configuration file.
If DatabaseManager.LogClassName is set to com.lutris.logging.StandardLogger you need to set :
DatabaseManager.LogFile - This is the file where the server log is written.
DatabaseManager. LogToFile[] - This is a comma separated list of message types to send to the log file specified in server.logFile.
DatabaseManager.LogToStderr[] - This is a comma separated list of message types to send to standard error.
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.