Package

edu.illinois.ncsa.daffodil.sapi

logger

Permalink

package logger

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. For example, to write all logs to /var/log/daffodil.log:

val lw = new FileLogWriter(new File("/var/log/daffodil.log"))
Daffodil.setLogWriter(lw)

One may also change the log level using Daffodil.setLoggingLevel, which defaults to LogLevel#Info if not set. For example, to change the log level to LogLevel#Warning:

Daffodil.setLoggingLevel(LogLevel.Warning);
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. logger
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class ConsoleLogWriter extends LogWriter

    Permalink

    LogWriter that writes log messages to stdout

  2. final class FileLogWriter extends LogWriter

    Permalink

    LogWriter that writes all log messages to a file.

  3. abstract class LogWriter extends AnyRef

    Permalink

    Abstract log writer, which can be overridden to create a custom log writer.

  4. final class NullLogWriter extends LogWriter

    Permalink

    LogWriter that drops all log messages

Value Members

  1. object LogLevel extends Enumeration

    Permalink

    Logging levels.

    Logging levels.

    Error, Warning, and Info are intended for general use. The default is Info.

    Levels Resolver Compile, Debug, and OOLAGDebug are intended for Daffodil developer use.

Inherited from AnyRef

Inherited from Any

Ungrouped