You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shawn Heisey (JIRA)" <ji...@apache.org> on 2014/08/14 23:48:19 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=14097732#comment-14097732 ]
Shawn Heisey commented on SOLR-6377:
------------------------------------
One or more new classes specific to Logback (including a log watcher) must be implemented and the code updated to identify when Logback is the slf4j binding. I started to look into writing this a month or so ago but found myself in WAY over my head.
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org