[
https://issues.apache.org/jira/browse/SOLR-7698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602529#comment-14602529
]
ASF GitHub Bot commented on SOLR-7698:
--------------------------------------
GitHub user chenlb opened a pull request:
https://github.com/apache/lucene-solr/pull/167
SOLR-7698 : solr logback contrib
https://issues.apache.org/jira/browse/SOLR-7698
alternative use logback support
solr.xml like
```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>
```
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
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chenlb/lucene-solr feature/contrib-logback
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/167.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #167
----
commit cd86dc4523a7c08e6cdea033e7a98c7cb4000dab
Author: chenlb <[email protected]>
Date: 2015-06-26T07:49:46Z
SOLR-7698 : solr logback contrib
----
> 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]