You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2016/11/05 19:08:59 UTC

[jira] [Resolved] (LOG4NET-526) Add appSetting conversion pattern to PatternString

     [ https://issues.apache.org/jira/browse/LOG4NET-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Bodewig resolved LOG4NET-526.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.6

Test added, many thanks Joe.

> 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
>             Fix For: 2.0.6
>
>
> 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.
>       <file type="log4net.Util.PatternString" value="%property{LogDIr}MyFile.log"/>
> Suggested feature is to allow a conversion pattern that reads the base directory name from an appSetting, e.g.:
>       <file type="log4net.Util.PatternString" value="%appSetting{LogDIr}MyFile.log"/>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [jira] [Resolved] (LOG4NET-526) Add appSetting conversion pattern to PatternString

Posted by Arun Kumar <ar...@hotmail.com>.
Unsubscribe

Get Outlook for Android<https://aka.ms/ghei36>



On Sun, Nov 6, 2016 at 12:39 AM +0530, "Stefan Bodewig (JIRA)" <ji...@apache.org>> wrote:


     [ https://issues.apache.org/jira/browse/LOG4NET-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Bodewig resolved LOG4NET-526.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.6

Test added, many thanks Joe.

> 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
>             Fix For: 2.0.6
>
>
> 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.
>       <file type="log4net.Util.PatternString" value="%property{LogDIr}MyFile.log"/>
> Suggested feature is to allow a conversion pattern that reads the base directory name from an appSetting, e.g.:
>       <file type="log4net.Util.PatternString" value="%appSetting{LogDIr}MyFile.log"/>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)