bsadeh / scalastic

scala driver for elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logback.xml should not be included in the artifact

jeroenr opened this issue · comments

The provided logback.xml conflicts with my own logback.xml in my classpath. I'd rather not have log configuration being pulled in from my dependencies

Here is an output from a simple Play application:

16:59:13,451 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
16:59:13,451 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
16:59:13,451 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/Users/ivan/.ivy2/cache/play/play_2.10/jars/play_2.10-2.1.3.jar!/logback.xml]
16:59:13,452 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
16:59:13,452 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/Users/ivan/.ivy2/cache/org.scalastic/scalastic_2.10/jars/scalastic_2.10-0.90.0.jar!/logback.xml]
16:59:13,452 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/Users/ivan/.ivy2/cache/play/play_2.10/jars/play_2.10-2.1.3.jar!/logback.xml]
16:59:13,473 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@5a5f358c - URL [jar:file:/Users/ivan/.ivy2/cache/play/play_2.10/jars/play_2.10-2.1.3.jar!/logback.xml] is not of type file
16:59:13,529 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
16:59:18,533 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
16:59:18,545 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
16:59:18,563 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
16:59:18,610 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
16:59:18,610 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
16:59:18,611 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
16:59:18,613 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@20b4a8ae - Registering current configuration as safe fallback point

It seems that logback.xml should be removed from Scalastic jar.

@jeroenr version 0.90.0.1 fixes the issue. Check it out!

@yatskevich fixed indeed, thanks!