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 300ED10EF7 for ; Thu, 17 Apr 2014 21:17:27 +0000 (UTC) Received: (qmail 80415 invoked by uid 500); 17 Apr 2014 21:17:18 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 80366 invoked by uid 500); 17 Apr 2014 21:17:16 -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 80304 invoked by uid 99); 17 Apr 2014 21:17:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2014 21:17:16 +0000 Date: Thu, 17 Apr 2014 21:17:16 +0000 (UTC) From: "Ralph Goers (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (LOG4J2-607) log4j2 json files do not support property substitutions 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-607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973358#comment-13973358 ] Ralph Goers edited comment on LOG4J2-607 at 4/17/14 9:16 PM: ------------------------------------------------------------- The error with not having the properties at the time the top level attributes are parsed was fixed, so I don't know why it would now not be working. The Interpolator always has system properties available, which is what that unit test uses. Did the addition of InitialLoggerContext cause Log4j to initialize before the system property is set? was (Author: ralph.goers@dslextreme.com): The error with not having the properties at the time the top level attributes are parsed was fixed, so I don't know why it would now not be working. The Interpolator always has system properties available, which is what that unit test uses. > log4j2 json files do not support property substitutions > ------------------------------------------------------- > > Key: LOG4J2-607 > URL: https://issues.apache.org/jira/browse/LOG4J2-607 > Project: Log4j 2 > Issue Type: Bug > Affects Versions: 2.0-rc1, 2.0-rc2 > Environment: Windows 7, JVM 7, Tomcat 7. Also tested using Mac OS X and JVM 8 (Tomcat 7). > Reporter: Sebastian Audet > Assignee: Matt Sicker > Attachments: log4j2.json > > > Using Property substitution in the latest release candidate doesn't work in JSON configuration files. > Seems to work fine in XML files though - suggest actually parsing the results of the JSON file configurations? -- 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