[
https://issues.apache.org/jira/browse/SOLR-7698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602548#comment-14602548
]
Daniel Collins commented on SOLR-7698:
--------------------------------------
I don't really follow why we need to change code in Solr (or add code) to make
use of Logback? All solr code should use SLF4J which is a framework, so
swapping log4j -> logback should just be a matter of replacing the relevant Jar
files, and adding a logback.xml to configure logback itself...
We do that already (in Solr 4.x admittedly) as part of our deployment process,
but no code changes are needed.
Also Solr doesn't tend to use Pull Requests, since the gold copy host is SVN
(github is just a mirror for convenience), all changes would have to be
submitted as a patch instead of a PR.
> solr alternative logback contrib
> ---------------------------------
>
> Key: SOLR-7698
> URL: https://issues.apache.org/jira/browse/SOLR-7698
> Project: Solr
> Issue Type: New Feature
> Affects Versions: 5.2.1
> Reporter: Linbin Chen
> Labels: logback
> Fix For: 5.3
>
> Attachments: SOLR-7698.patch
>
>
> alternative use logback support
> solr.xml like
> {code:xml}
> <solr>
> <!-- ... -->
> <logging>
> <str name="class">org.apache.solr.logging.logback.LogbackWatcher</str>
> <bool name="enabled">true</bool>
> <watcher>
> <int name="size">50</int>
> <str name="threshold">WARN</str>
> </watcher>
> </logging>
> <!-- ... -->
> </solr>
> {code}
> solr-X.X.X/server/lib/ext remove:
> * log4j-1.2.X.jar
> * slf4j-log4j12-1.7.X.jar
> add :
> * log4j-over-slf4j-1.7.7.jar
> * logback-classic-1.1.3.jar
> * logback-core-1.1.3.jar
> example : https://github.com/chenlb/vootoo/wiki/Logback-for-solr-logging
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]