Using log4net, can I configure a logger so that it can override a single parameter of one of the appenders? Some examples:
<log4net>
<appender name="A1" type="log4net.Appender.FileAppender">
<file value="log4net.log">
</appender>
<root>
<level value="ERROR" />
<appender-ref ref="A1" />
</root>
<logger name="MyLogger">
<level value="WARN" />
<appender-ref ref="A1">
<file value="MyLogger.Log"/>
</appender-ref>
</logger>
</log4net>
For example, I'd like to configure one of my sub-loggers to send output to a different file from the rest of my application. Am I going the wrong way? Should I configure it with a new appender? What about sending different levels to different appenders? e.g.
<log4net>
<appender name="default" type="log4net.Appender.FileAppender">
<file value="My.log">
</appender>
<appender name="errors" type="log4net.Appender.FileAppender">
<file value="Errors.log">
</appender>
<root>
<level value="DEBUG">
<appender-ref ref="default" />
</level>
<level value="ERROR">
<appender-ref ref="errors" />
</level>
</root>
</log4net>