[logback-dev] [JIRA] Commented: (LBCLASSIC-330) no debug info printed when problem with FixedWindowRollingPolicy

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Wed May 9 20:04:26 CEST 2012


    [ http://jira.qos.ch/browse/LBCLASSIC-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12433#action_12433 ] 

Ceki Gulcu commented on LBCLASSIC-330:
--------------------------------------

Yes, I was referring to the debug information. For completeness, here is the output I see.

20:02:09,794 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeFilter scanning period to 30 seconds
20:02:09,795 |-INFO in ReconfigureOnChangeFilter{invocationCounter=0} - Will scan for changes in [[C:\home\ceki\logback\logback-classic\src\test\java\ch\qos\logback\classic\issue\lbclassic330\logback.xml]] every 30 seconds. 
20:02:09,795 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Adding ReconfigureOnChangeFilter as a turbo filter
20:02:09,803 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
20:02:09,803 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
20:02:09,822 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
20:02:09,829 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
20:02:09,832 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ROLLING]
20:02:09,845 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy at 2393385d - No compression will be used
20:02:09,851 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
20:02:09,852 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - Active log file name: server.log
20:02:09,852 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING] - File property is set to [server.log]
20:02:09,853 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
20:02:09,855 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
20:02:09,855 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ROLLING] to Logger[ROOT]
20:02:09,855 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
20:02:09,855 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator at 15a62c31 - Registering current configuration as safe fallback point

Which version of logback are you using?

> no debug info printed when problem with FixedWindowRollingPolicy
> ----------------------------------------------------------------
>
>                 Key: LBCLASSIC-330
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-330
>             Project: logback-classic
>          Issue Type: Bug
>          Components: joran
>            Reporter: Antony Stubbs
>            Assignee: Logback dev list
>            Priority: Critical
>
> This configuration causes no debug output to be displayed:
> {code}
> <configuration scan="true" scanPeriod="30 seconds" debug="true">
>     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
>         <target>System.out</target>
>         <encoder>
>             <pattern>| [%-5level] [%date{ISO8601}] [%logger] [%thread] [%X{akkaSource}] - %msg %rootException %n</pattern>
>         </encoder>sdfsadf
>     </appender>
>     <appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
>         <file>server.log</file>
>         <!-- only keep 3 -->
>         <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
>             <fileNamePattern>server.%i.log</fileNamePattern>
>             <minIndex>1</minIndex>
>             <maxIndex>3</maxIndex>
>         </rollingPolicy>
>         <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
>             <maxFileSize>1MB</maxFileSize>
>         </triggeringPolicy>
>         <encoder>
>             <pattern>| [%-5level] [%date{ISO8601}] [%logger] [%thread] [%X{akkaSource}] - %msg %rootException %n</pattern>
>         </encoder>
>     </appender>
>     <root level="DEBUG">
>         <appender-ref ref="STDOUT"/>
>         <appender-ref ref="ROLLING"/>
>     </root>
> </configuration>
> {code}
> If I remove the rolling file appender, debug output is shown.
> If I remove just the rollingPolicy, debug output is shown.
> If I remove just the <fileNamePattern>server-event.%i.log</fileNamePattern> the debug output is displayed and the exception about the missing field is shown.
> Seems related to http://jira.qos.ch/browse/LBCORE-38 and http://jira.qos.ch/browse/LBCLASSIC-62

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list