mirror of https://github.com/apache/lucene.git
SOLR-5363: Solr doesn't start up properly with Log4J2
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1535065 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e29c49f458
commit
0c95712ee4
|
@ -119,6 +119,9 @@ Bug Fixes
|
|||
|
||||
* SOLR-5371: Solr should consistently call SolrServer#shutdown (Mark Miller)
|
||||
|
||||
* SOLR-5363: Solr doesn't start up properly with Log4J2 (Petar Tahchiev via Alan
|
||||
Woodward)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ public abstract class LogWatcher<E> {
|
|||
slf4jImpl = StaticLoggerBinder.getSingleton().getLoggerFactoryClassStr();
|
||||
log.info("SLF4J impl is " + slf4jImpl);
|
||||
if (fname == null) {
|
||||
if (slf4jImpl.indexOf("Log4j") > 0) {
|
||||
if ("org.slf4j.impl.Log4jLoggerFactory".equals(slf4jImpl)) {
|
||||
fname = "Log4j";
|
||||
} else if (slf4jImpl.indexOf("JDK") > 0) {
|
||||
fname = "JUL";
|
||||
|
|
Loading…
Reference in New Issue