See: Description
Class | Description |
---|---|
ConsoleLogWriter |
LogWriter that writes log messages to stdout |
FileLogWriter |
LogWriter that writes all log messages to a file. |
LogWriter |
Abstract log writer, which can be overridden to create a custom log writer.
|
NullLogWriter |
LogWriter that drops all log messages |
Enum | Description |
---|---|
LogLevel |
Logging levels.
|
ConsoleLogWriter
- writes all log messages to stdoutFileLogWriter
- writes all log messages to fileNullLogWriter
- drop all log messagesDaffodil.setLogWriter(edu.illinois.ncsa.daffodil.japi.logger.LogWriter)
. For example, to write all logs to /var/log/daffodil.log
:
FileLogWriter lw = new FileLogWriter(new File("/var/log/daffodil.log"));
Daffodil.setLogWriter(lw);
One may also change the log level using Daffodil.setLoggingLevel(edu.illinois.ncsa.daffodil.japi.logger.LogLevel)
, which defaults to LogLevel.Info
if not set. For example, to change the log level to LogLevel.Warning
:
Daffodil.setLoggingLevel(LogLevel.Warning);