[logback-dev] [JIRA] (LOGBACK-1273) Missing documentation regarding groovy configuration of LevelChangePropagator

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Mar 7 18:02:00 CET 2017


Joern Huxhorn created LOGBACK-1273:
--------------------------------------

             Summary: Missing documentation regarding groovy configuration of LevelChangePropagator
                 Key: LOGBACK-1273
                 URL: https://jira.qos.ch/browse/LOGBACK-1273
             Project: logback
          Issue Type: Improvement
          Components: logback-classic
    Affects Versions: 1.2.1
         Environment: any
            Reporter: Joern Huxhorn
            Assignee: Logback dev list


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

I came up with this:
{code:java}
LevelChangePropagator levelChangePropagator = new LevelChangePropagator()
levelChangePropagator.setContext(context)
levelChangePropagator.start()
context.addListener(levelChangePropagator)
{code}

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



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the logback-dev mailing list