You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Achim Nierbeck (JIRA)" <ji...@apache.org> on 2015/10/26 14:56:27 UTC

[jira] [Commented] (KARAF-4078) DailyRollingFileAppender doesn't work as expected

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

Achim Nierbeck commented on KARAF-4078:
---------------------------------------

well the last time I checked the DailyRollingFileAppender it's been doing the role-over cutoff on a daily basis, not on file-size, 
I guess that maxFileSize is a leftover of the previously used RollingFileAppender. 

> DailyRollingFileAppender doesn't work as expected
> -------------------------------------------------
>
>                 Key: KARAF-4078
>                 URL: https://issues.apache.org/jira/browse/KARAF-4078
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 3.0.4
>            Reporter: Sergey 
>
> Having in mind this logging config:
> {code}
> # File appender
> log4j.appender.out=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.out.layout=org.apache.log4j.PatternLayout
> log4j.appender.out.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
> log4j.appender.out.file=${karaf.data}/log/karaf.log
> log4j.appender.out.append=true
> log4j.appender.out.maxFileSize=10MB
> log4j.appender.out.maxBackupIndex=10
> {code}
> I can see karaf.log file size around 36Gb right now, so this log probably not rolled at max file size.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)