Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AABE4200B78 for ; Fri, 29 Jul 2016 07:36:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A96EE160A85; Fri, 29 Jul 2016 05:36:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EC486160AA9 for ; Fri, 29 Jul 2016 07:36:21 +0200 (CEST) Received: (qmail 79510 invoked by uid 500); 29 Jul 2016 05:36:20 -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 79319 invoked by uid 99); 29 Jul 2016 05:36:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2016 05:36:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9E3052C0059 for ; Fri, 29 Jul 2016 05:36:20 +0000 (UTC) Date: Fri, 29 Jul 2016 05:36:20 +0000 (UTC) From: "Sumit Singhal (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (LOG4J2-1482) Improper header in CsvParameterLayout MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 29 Jul 2016 05:36:22 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15398738#comment-15398738 ] Sumit Singhal edited comment on LOG4J2-1482 at 7/29/16 5:35 AM: ---------------------------------------------------------------- Hi Gary, Thanks for looking into this. But unfortunately, this does not work. This gives the same output as with the line separator sample I uploaded. Below is the output with %n: First file: param1,param2,param3 9,11,12 9,11,12 9,11,12 9,11,12 Second file: param10,param20,param30 ,, 9,11,12 9,11,12 9,11,12 9,11,12 All the subsequent files are similar to second file. Just for you information, in the first sample I uploaded, I used "${sys:line.separator}" as the line separator instead of %n. Let me know if there is anything else I should try. Sumit was (Author: sumit23): Hi Gary, Thanks for looking into this. But unfortunately, this does not work. This gives the same output as with the line separator sample I uploaded. Below is the output with %n: First file: param1,param2,param3 9,11,12 9,11,12 9,11,12 9,11,12 Second file: param10,param20,param30 ,, 9,11,12 9,11,12 9,11,12 9,11,12 All the subsequent files are similar to second file. Just for you information, in the first sample I uploaded, I used "${sys:line.separator}" as the line separator instead of %n. Let me know if there is anything else I should try. Sumit > Improper header in CsvParameterLayout > ------------------------------------- > > Key: LOG4J2-1482 > URL: https://issues.apache.org/jira/browse/LOG4J2-1482 > Project: Log4j 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.6.2 > Reporter: Sumit Singhal > Attachments: csv-with-line-seprator-1.csv, csv-with-line-seprator-2.csv, csv-without-line-separator-1.csv, csv-without-line-separator-2.csv > > > The header and first record are coming in first line in case of CsvParameterLayout. This messes up the header for the first file as well as for the subsequent files. And if we use line separator as part of header, the first file seems ok but the first record in subsequent files comes out to be empty with only commas. > Copied from the SO post: > {code:xml} > > > > D:/watcher > audit > param1,param2,param3 > > > fileName="${audit-path}/${file-name}.tmp" filePattern="${audit-path}/${file-name}-%d{yyyy-MM-dd}-%i.csv"> > > > > > > > > > > > > > > {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