logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Schaft (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-435) Support limiting number of log files based on date pattern
Date Fri, 17 Jul 2015 11:08:08 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14631196#comment-14631196

Robert Schaft commented on LOG4J2-435:

The problem is from my point of view NOT finding the files to roll (I implemented it already)
- at it doesn't cost much because it runs only at rollover and reads only directory information.

The problem is how to keep the appender configuration clear and simple.
Your proposal would add another configuration option "file list" to the appender configuration
which must contain a path to the rolledFileLog in a static directory (without %i or %d).
I tried to code the features without this extra configuration of "static base directory" but

> Support limiting number of log files based on date pattern
> ----------------------------------------------------------
>                 Key: LOG4J2-435
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-435
>             Project: Log4j 2
>          Issue Type: Improvement
>            Reporter: Arkin Yetis
>            Assignee: Ralph Goers
>              Labels: Rollover
>         Attachments: LimitingRolloverStrategy.java, SizeParser.java
> DefaultRolloverStrategy max attribute only applies if you have a %i in the file pattern.
This request is to enhance DefaultRolloverStrategy or another appropriate component to allow
a max number of files limit to apply across days/months/years when a filePattern includes
a date pattern.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message