
22 Feb
2012
22 Feb
'12
2:03 a.m.
Sorry if this has been asked before. I'm new to the user list, and I find it difficult to search the archives. How can I add a contextListener in a logback.groovy config file? On this page: http://logback.qos.ch/manual/configuration.html#contextListener It talks about adding a context listener specifically to deal with LevelChangePropogator. I'd like to do this, but I generally prefer the groovy syntax to the xml syntax. This page: http://logback.qos.ch/manual/groovy.html Talks a lot about the groovy syntax, but it doesn't specifically mention how to set up a contextListener. How can I do it? I have tried some things I thought would work, but they didn't. Groovy Version: 2.0.0 Logback Classic: 1.0.0 Thanks, Pepper