[ 
https://issues.apache.org/jira/browse/STORM-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15331515#comment-15331515
 ] 

Roland Jungnickel edited comment on STORM-1900 at 6/15/16 10:36 AM:
--------------------------------------------------------------------

>From doing a bit of research I've found that other frameworks are having the 
>same issues because like storm they use an actual implementation of slf4j (in 
>storms case log4j2). So I think storm is forcing its end users to use log4j2 
>or is there a way to use logback with storm?


was (Author: soag):
>From doing a bit of research I've found that other frameworks are having the 
>same issues because like storm they use an actual implementation of slf4j (in 
>storms case log4j2). So I think storm is forcing it's end users to use log4j2 
>or is there a way to use logback with storm?

> Log configuration with logback
> ------------------------------
>
>                 Key: STORM-1900
>                 URL: https://issues.apache.org/jira/browse/STORM-1900
>             Project: Apache Storm
>          Issue Type: Question
>          Components: storm-core
>    Affects Versions: 0.10.1
>            Reporter: Roland Jungnickel
>            Priority: Minor
>              Labels: build
>
> I am trying to use logback in my project and am getting this message:
> {quote}
> 2016-06-14 16:55:56.945 STDERR [INFO] SLF4J: Class path contains multiple 
> SLF4J bindings.
> 2016-06-14 16:55:56.997 STDERR [INFO] SLF4J: Found binding in 
> [jar:file:/opt/apache-storm-0.10.1/lib/log4j-slf4j-impl-2.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> 2016-06-14 16:55:56.998 STDERR [INFO] SLF4J: Found binding in 
> [jar:file:/srv/storm/supervisor/stormdist/MatchIdentifiers-675106f-1465923070-5-1465923118/stormjar.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> 2016-06-14 16:55:56.998 STDERR [INFO] SLF4J: See 
> http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 2016-06-14 16:55:56.998 STDERR [INFO] SLF4J: Actual binding is of type 
> [org.apache.logging.slf4j.Log4jLoggerFactory]
> 2016-06-14 16:56:03.647 STDERR [INFO] 2016-06-14 16:56:03,641 ERROR Logger 
> contains an invalid element or attribute "appender"{quote}
> The solution slf4j suggests is to exclude slf4j from the dependency which in 
> this case would be storm. But since storm includes slf4j in the classpath 
> when starting the topology this does not work.
> Is there a known way to fix this?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to