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)
_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-dev

Reply via email to