Package net.sf.saxon.lib

## Class SystemLogger

- java.lang.Object
- - net.sf.saxon.lib.Logger
  - - net.sf.saxon.lib.SystemLogger

-     public class SystemLogger
      extends Logger

  An implementation of Saxon's `Logger` interface that writes all messages through to a supplied `java.util.logging.Logger`.

- - ### Field Summary

    - ### Fields inherited from class net.sf.saxon.lib.Logger

      `DISASTER, ERROR, INFO, WARNING`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SystemLogger​(java.util.logging.Logger log)` | Create a `Logger` that wraps a Java `java.util.logging.Logger`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `println​(java.lang.String message, int severity)` | Log a message.

    - ### Methods inherited from class net.sf.saxon.lib.Logger

      `asStreamResult, asWriter, close, disaster, error, info, isUnicodeAware, setUnicodeAware, warning`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SystemLogger

          public SystemLogger​(java.util.logging.Logger log)

      Create a `Logger` that wraps a Java `java.util.logging.Logger`

  - ### Method Detail

    - #### println

          public void println​(java.lang.String message,
                              int severity)

      Log a message.
      Specified by:
        `println` in class `Logger`
      Parameters:
        `message` - The message to be output
        `severity` - The severity level. One of `Logger.INFO`, `Logger.WARNING`, `Logger.ERROR`, `Logger.DISASTER`