Description
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"/>
Attachments
Attachments
Issue Links
- links to