I have a log4net file appender configured that all my log files should use:
<appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
<file type="log4net.Util.PatternString" value="..\Logs\"/>
<appendToFile value="true"/>
<datePattern type="log4net.Util.PatternString" value="yyyyMMdd'.Log'"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%date][%-5level][%logger] %message%newline"/>
</layout>
</appender>
The directory and date pattern is hard-coded. I have different loggers that should use the exact same configuration, but just with a different folder name.
For now, I ended up copying and pasting each block into a new appender, but is there a way to configure log4net to 'share' a common appender's settings?