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 EF2BE111C7 for ; Tue, 20 May 2014 06:47:38 +0000 (UTC) Received: (qmail 40462 invoked by uid 500); 20 May 2014 06:47:38 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 40410 invoked by uid 500); 20 May 2014 06:47:38 -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 40401 invoked by uid 99); 20 May 2014 06:47:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2014 06:47:38 +0000 Date: Tue, 20 May 2014 06:47:38 +0000 (UTC) From: "sivan (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-642) Mismatch in Rollback date and log entry date in the log file 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-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14002872#comment-14002872 ] sivan commented on LOG4J2-642: ------------------------------ For example out-2014-05-18 file contains full of log entries with 19th date. The requirement is one file for each day and the file should contain only the log entries on that day. How can we specify when to rollover in the TimeBasedTriggeringPolicy for each day? > Mismatch in Rollback date and log entry date in the log file > ------------------------------------------------------------ > > Key: LOG4J2-642 > URL: https://issues.apache.org/jira/browse/LOG4J2-642 > Project: Log4j 2 > Issue Type: Bug > Environment: Java 7 > Reporter: sivan > > This is an issue with the rollbacking of the log file. The file is rollbacked as inst4-out-2014-05-16.log. But the log entry is created on 2014-05-19. So many log files are rollbacked like this. The configuration is as follows. Can you please advise why this is happening? > {code} > > > > log_type_%c|%K{sessionId}|%t|%d{MM/dd/yyyy HH:mm:ss.SSS}|%p|%C|%M|%L|%K{msg}%n > ${sys:logfilepath}//$${date:yyyy-MM}//${sys:oft.appserver}-out-%d{yyyy-MM-dd}.log > ${sys:logfilepath}//${sys:oft.appserver}-out.log > > > > > > > > ${logPattern} > > > > > > > > > > > > > > > > > > > > > {code} > Below is the Log Entry from log file. > {code} > log_type_webservice|job-945|ump-standard-jobType-203-sessKey-job-945|05/19/2014 15:29:29.374|INFO|com.mmp.webservice.wsFactory|factory|109|Service#FirmSTP#$$#Starts creating the ws client: FirmSTP > {code} -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org