Skip navigation links

Package edu.illinois.ncsa.daffodil.japi.logger

Provides the classes necessary to recieve logging messages from Daffodil.

See: Description

Package edu.illinois.ncsa.daffodil.japi.logger Description

Provides the classes necessary to recieve logging messages from Daffodil.

Overview

Daffodil comes with three prebuilt log writers: To use one of these log writers, create and instance of it and pass it to Daffodil.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);
 
Skip navigation links