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 29AD0183E8 for ; Thu, 15 Oct 2015 16:11:21 +0000 (UTC) Received: (qmail 34877 invoked by uid 500); 15 Oct 2015 16:11:05 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 34827 invoked by uid 500); 15 Oct 2015 16:11:05 -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 34814 invoked by uid 99); 15 Oct 2015 16:11:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2015 16:11:05 +0000 Date: Thu, 15 Oct 2015 16:11:05 +0000 (UTC) From: "adam Retter (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (LOG4J2-1050) Add a Log4jLookup class to help write log files relative to log4j2.xml 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-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14959139#comment-14959139 ] adam Retter edited comment on LOG4J2-1050 at 10/15/15 4:10 PM: --------------------------------------------------------------- [~remkop@yahoo.com] It is a webapp but ships with an embedded Jetty so you can run it standalone. You could build and run that project by doing: ``` git clone https://github.com/adamretter/exist.git cd exist git checkout log4j-2.4 ./build.sh bin/startup.sh ``` Logs should be written to `exist/webapp/WEB-INF/logs`, but you will see they are instead written to `exist/${log4j:configParentLocation}/webapp/WEB-INF/logs` was (Author: adamretter): [~remkop@yahoo.com] It is a webapp but ships with an embedded Jetty so you can run it standalone. You could build and run that project by doing: git clone https://github.com/adamretter/exist.git cd exist git checkout log4j-2.4 ./build.sh bin/startup.sh Logs should be written to exist/webapp/WEB-INF/logs, but you will see they are instead written to exist/${log4j:configParentLocation}/webapp/WEB-INF/logs > Add a Log4jLookup class to help write log files relative to log4j2.xml > ---------------------------------------------------------------------- > > Key: LOG4J2-1050 > URL: https://issues.apache.org/jira/browse/LOG4J2-1050 > Project: Log4j 2 > Issue Type: New Feature > Components: Configurators > Affects Versions: 2.3 > Environment: All > Reporter: adam Retter > Assignee: Remko Popma > Priority: Minor > Fix For: 2.4, 2.4.1 > > Attachments: 0001-feature-Added-support-for-properties-interpolation-o.patch > > Original Estimate: 0h > Remaining Estimate: 0h > > I attach a patch related to this mailing list post - http://mail-archives.apache.org/mod_mbox/logging-log4j-user/201506.mbox/%3CCAPK0icj%3DY3T9ptBGyGdgbHyMow_YWcfwC6UdLHS-QbgnBk8wkA%40mail.gmail.com%3E > The patch makes the properties `log4j:configLocation` and `log4j:configParentLocation` available for substitution in the log4j configuration file. -- 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