Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
Description
I think all that is needed is to support the following.
logback.groovy
appender('2ndAppender', ConsoleAppender) { encoder(PatternLayoutEncoder) { pattern = logPattern } } logger('com.xyz', DEBUG) { // this is the part that doesn't work appenderRef = '2ndAppender' }
output
Caused by: groovy.lang.MissingMethodException: No signature of method: Script1.logger() is applicable for argument types: (java.lang.String, ch.qos.logback.classic.Level, Script1$_run_closure4)
For xml config it looks like this is possible stackoverflow