Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D23B178B5 for ; Mon, 27 Apr 2015 16:21:40 +0000 (UTC) Received: (qmail 24706 invoked by uid 500); 27 Apr 2015 16:21:39 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 24654 invoked by uid 500); 27 Apr 2015 16:21:39 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 24644 invoked by uid 99); 27 Apr 2015 16:21:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2015 16:21:39 +0000 Date: Mon, 27 Apr 2015 16:21:39 +0000 (UTC) From: "Gary Gregory (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LOG4J2-524) Feature request: auto-delete older rolled over files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Gregory updated LOG4J2-524: -------------------------------- Fix Version/s: (was: 2.3) Removing 2.3 as the fix version since there is code committed for this yet. > Feature request: auto-delete older rolled over files > ---------------------------------------------------- > > Key: LOG4J2-524 > URL: https://issues.apache.org/jira/browse/LOG4J2-524 > Project: Log4j 2 > Issue Type: Improvement > Components: Appenders > Affects Versions: 2.0-beta9, 2.0-rc1 > Reporter: Remko Popma > Labels: Rollover > > This issue was raised by Kireet on the log4j-user mailing list: > I am trying to use the rolling file appender in log4j2, basically I want to roll at midnight daily and keep 3 old log files. New files are created properly, but log4j doesn't seem to be cleaning up the old files. Does log4j only support cleanup of files within the time period? Here is the relevant portion of the config. I tried things with and without the %i pattern. > {code} > filePattern="app-%d{yyyy-MM-dd}.%i.log"> > > %m%n > > > > > > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org