[
https://issues.apache.org/jira/browse/SOLR-6377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ravikanth Gangarapu updated SOLR-6377:
--------------------------------------
Attachment: SOLR-6377.patch
[~elyograg] [~varunthacker]
hi, I needed the same thing, so ended up writing it. I am attaching it as a
patch. I have tested it on my local and it works afaik. Please take a look and
let me know if you need more out of it. I hope you can add it to next Solr
release.
Thanks
Ravi
> 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
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]