You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2016/09/28 10:12:20 UTC

[jira] [Commented] (SOLR-6377) Admin UI Logging tab doesn't work with different loggers

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

Jan Høydahl commented on SOLR-6377:
-----------------------------------

What happened to this new logWatcher?

> 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
>         Attachments: SOLR-6377.patch, SOLR-6377.patch, SOLR-6377.patch, SOLR-6377.patch, SOLR-6377.patch
>
>
> 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.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org