Varun Thacker created SOLR-6377:
-----------------------------------

             Summary: Admin UI Logging tab doesn't work with different loggers
                 Key: SOLR-6377
                 URL: https://issues.apache.org/jira/browse/SOLR-6377
             Project: Solr
          Issue Type: Improvement
            Reporter: Varun Thacker
            Priority: Minor


When I use Logback instead of log4j as my logger I am unable to see logs in the 
UI's logging tab. 

These are the jars in by lib directory - 

{noformat}
~/solr-4.9.0/example $ ls lib/ext/
jcl-over-slf4j-1.7.6.jar        jul-to-slf4j-1.7.6.jar          
logback-classic-1.0.13.jar      logback-core-1.0.13.jar         
slf4j-api-1.7.6.jar
{noformat}

And this is what the configuration file looks like - 

{noformat}
~/solr-4.9.0/example $ cat resources/logback-test.xml 
<configuration>
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
<File>${solr.log}/solr.log</File>
<encoder>
<pattern>%-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; %C; %m</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<maxIndex>9</maxIndex>
<FileNamePattern>${solr.log}/solr.log.%i</FileNamePattern>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>4MB</MaxFileSize>
</triggeringPolicy>
</appender>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%-4r [%t] %-5p %c %x – %m%n</pattern>
</encoder>
</appender>
<logger name="org.apache.zookeeper" level="WARN"/>
<logger name="org.apache.hadoop" level="WARN"/>
<logger name="org.apache.solr.update.LoggingInfoStream" level="OFF"/>
<root level="INFO">
<appender-ref ref="file"/>
<appender-ref ref="CONSOLE"/>
</root>
</configuration>
{noformat}

Looking into the LogWatcher class to see whats wrong



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to