Class LoggingConfig

java.lang.Object
org.gwizard.logging.LoggingConfig

public class LoggingConfig
extends java.lang.Object

Logging configuration is drawn from three sources, in three steps:

  1. Logging configuraton starts with the standard Logback boostrap process (ie, logback.xml).
  2. If the 'xml' attribute has any content here, the configuration is replaced wholesale.
  3. Any 'loggers' mapped here have their levels overriden appropriately.

The optional 'xml' property should be the raw XML of the logback config file. It will be fed directly to logback. This actually works pretty well in a YAML file because of the nifty block text syntax.

If the xml value is null or empty, we leave the standard Logback boostrap config alone.

  • Constructor Summary

    Constructors
    Constructor Description
    LoggingConfig​(java.lang.String xml)
    Sometimes convenient
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoggingConfig

      public LoggingConfig​(java.lang.String xml)
      Sometimes convenient