logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4NET-526) Add appSetting conversion pattern to PatternString
Date Sun, 02 Oct 2016 17:23:20 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15540689#comment-15540689
] 

ASF GitHub Bot commented on LOG4NET-526:
----------------------------------------

GitHub user JJoe2 opened a pull request:

    https://github.com/apache/log4net/pull/35

    Wip/app settings

    Implementation for LOG4NET-526

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/JJoe2/log4net wip/AppSettings

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/log4net/pull/35.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #35
    
----
commit a66d2fc61c4a1cfd8317aee41385ef6c43373ffc
Author: JoeJoe <jocularjoe@hotmail.com>
Date:   2016-04-22T19:21:07Z

    Use UTC internally to avoid ambiguous times

commit 9e9f1759d6a80594cd2d12bd54a9e3af9e7cfaa0
Author: JoeJoe <jocularjoe@hotmail.com>
Date:   2016-04-23T19:58:36Z

    Implement flushing of appenders that buffer data

commit 38fdfbaa7e9cd30e8a84fe90aa0ab12641b4db5f
Author: JoeJoe <jocularjoe@hotmail.com>
Date:   2016-10-02T17:12:33Z

    Added AppSettingPatterConverter

----


> 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.
>       <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)

Mime
View raw message