How can I add a contextListener in logback groovy configuration? -
I want to use LevelChangePropagator as a lockback reference, as described in Although my project is configured using log in groovy, and there is nothing in the official document about configListener in groovy configuring. The Logback Groove provides a tool in the configuration I tried to do it, but it just took away the context and took part.
I have found exactly my question in logback mailing lists, but the solution is not working for me.
Edit: Add it to logback.groovy:
I created a document in the lockback GIRA about the missing document: Still, maybe someone knows the answer?
Import ch. qos.logback.classic.jul.LevelChangePropagator def lcp = new LevelChangePropagator () lcp.context = reference lcp.resetJUL = true context.addListener (Elseepi)
Comments
Post a Comment