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:
I created a document in the lockback GIRA about the missing document: Still, maybe someone knows the answer?

Add it to logback.groovy:

  Import ch. qos.logback.classic.jul.LevelChangePropagator def lcp = new LevelChangePropagator () lcp.context = reference lcp.resetJUL = true context.addListener (Elseepi)    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -