lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Heisey (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-6377) Admin UI Logging tab doesn't work with different loggers
Date Wed, 03 Sep 2014 18:35:52 GMT

     [ https://issues.apache.org/jira/browse/SOLR-6377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shawn Heisey updated SOLR-6377:
-------------------------------
    Attachment: SOLR-6377.patch

New patch with licenses added.  Still failing precommit, can't see the problem this time.


> 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
>
>
> 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


Mime
View raw message