appenderRefWithNonAppenderAttachable.groovy (logback-1.2.3) | : | appenderRefWithNonAppenderAttachable.groovy (logback-v_1.2.7) | ||
---|---|---|---|---|
skipping to change at line 21 | skipping to change at line 21 | |||
* under the terms of the GNU Lesser General Public License version 2.1 | * under the terms of the GNU Lesser General Public License version 2.1 | |||
* as published by the Free Software Foundation. | * as published by the Free Software Foundation. | |||
*/ | */ | |||
import ch.qos.logback.classic.PatternLayout | import ch.qos.logback.classic.PatternLayout | |||
import ch.qos.logback.core.ConsoleAppender | import ch.qos.logback.core.ConsoleAppender | |||
import ch.qos.logback.core.encoder.LayoutWrappingEncoder | import ch.qos.logback.core.encoder.LayoutWrappingEncoder | |||
appender("STDOUT", ConsoleAppender) { | appender("STDOUT", ConsoleAppender) { | |||
encoder(LayoutWrappingEncoder) { | encoder(LayoutWrappingEncoder) { | |||
layout(PatternLayout) { | layout(PatternLayout) { | |||
pattern = "${p} %m%n" | pattern = "%m%n" | |||
} | } | |||
} | } | |||
} | } | |||
appender("STDOUT-WITH-APPENDERREF", ConsoleAppender) { | appender("STDOUT-WITH-APPENDERREF", ConsoleAppender) { | |||
appenderRef('STDOUT') | appenderRef('STDOUT') | |||
} | } | |||
root(DEBUG, ["STDOUT-ASYNC"]) | root(DEBUG, ["STDOUT-ASYNC"]) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |