if you just put some logback.groovy
(or logback.xml
) file in the (recommended) src/logback.groovy
location you will likely run into a similar (console) warning:
13:21:08,177 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.groovy] at [file:/D:/my-proj-gwt/src-resource/logback.groovy]
13:21:08,178 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.groovy] occurs multiple times on the classpath.
13:21:08,178 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.groovy] occurs at [file:/D:/my-proj-gwt/war/WEB-INF/classes/logback.groovy]
13:21:08,178 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.groovy] occurs at [file:/D:/my-proj-gwt/src-resource/logback.groovy]
with logging detail output included. The logging INFO
output is included because of the multiple occurances of the logback config file(s) in the classpath (src/
and war/WEB-INF/classes
).
I found out the way to solve this as answered below...