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 2351A11D7D for ; Mon, 15 Sep 2014 13:56:35 +0000 (UTC) Received: (qmail 62550 invoked by uid 500); 15 Sep 2014 13:56:34 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 62403 invoked by uid 500); 15 Sep 2014 13:56:34 -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 62252 invoked by uid 99); 15 Sep 2014 13:56:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2014 13:56:34 +0000 Date: Mon, 15 Sep 2014 13:56:34 +0000 (UTC) From: "Pablo Vidal Otero (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LOG4J2-829) Error replace slash in pattern file when rolling file appender 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-829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pablo Vidal Otero updated LOG4J2-829: ------------------------------------- Priority: Major (was: Minor) > Error replace slash in pattern file when rolling file appender > -------------------------------------------------------------- > > Key: LOG4J2-829 > URL: https://issues.apache.org/jira/browse/LOG4J2-829 > Project: Log4j 2 > Issue Type: Bug > Components: Appenders > Affects Versions: 2.0.2 > Environment: Development machine Windows 7 > Reporter: Pablo Vidal Otero > Labels: appender, file-pattern, slashes > Original Estimate: 24h > Remaining Estimate: 24h > > With following log configuration > filePattern="${sys:user.home}/logs/app-%d{MM-dd-yyyy}.log"> > > %d %p %c{1.} [%t] %m%n > > > > When start, the file name is created correctly (C:\user/logs/app.log) but when the file will rotate with file pattern, the path name is wrong. The system property user.home doesn't has slashes. C:user/logs/app-0915-2014.log -- 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