Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1273

Missing documentation regarding groovy configuration of LevelChangePropagator

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.1
    • logback-classic
    • None
    • any

    Description

      The documentation is missing info about how to enable LevelChangePropagator in a logback.groovy file.

      I came up with this:

      LevelChangePropagator levelChangePropagator = new LevelChangePropagator()
      levelChangePropagator.setContext(context)
      levelChangePropagator.start()
      context.addListener(levelChangePropagator)
      

      Is there a better/easier way I'm missing? Current approach is modeled after what the XML implementation is doing...

      Attachments

        Activity

          People

            logback-dev Logback dev list
            jhuxhorn Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: