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 EF54C200BAC for ; Wed, 26 Oct 2016 20:43:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EDFEB160B05; Wed, 26 Oct 2016 18:43:59 +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 485BA160AE1 for ; Wed, 26 Oct 2016 20:43:59 +0200 (CEST) Received: (qmail 82443 invoked by uid 500); 26 Oct 2016 18:43:58 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 82418 invoked by uid 99); 26 Oct 2016 18:43:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2016 18:43:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5D2BE2C0086 for ; Wed, 26 Oct 2016 18:43:58 +0000 (UTC) Date: Wed, 26 Oct 2016 18:43:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4NET-526) Add appSetting conversion pattern to PatternString MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 26 Oct 2016 18:44:00 -0000 [ https://issues.apache.org/jira/browse/LOG4NET-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15609299#comment-15609299 ] ASF GitHub Bot commented on LOG4NET-526: ---------------------------------------- Github user bodewig commented on the issue: https://github.com/apache/log4net/pull/35 I've added your converter, many thanks. Tests would be good and we need documentation before we can close LOG4NET-526. > Add appSetting conversion pattern to PatternString > -------------------------------------------------- > > Key: LOG4NET-526 > URL: https://issues.apache.org/jira/browse/LOG4NET-526 > Project: Log4net > Issue Type: New Feature > Components: Core > Affects Versions: 1.2.15 > Reporter: Joe > Priority: Minor > > A common requirement is to be able to define a base directory for log files that can be used by multiple FileAppenders. In this way, the directory only needs to be changed in one place. > Today the typical solution is to use a PatternString with a property that is set in code before log4net is configured, e.g. > > Suggested feature is to allow a conversion pattern that reads the base directory name from an appSetting, e.g.: > -- This message was sent by Atlassian JIRA (v6.3.4#6332)