Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
1.2.1
-
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...