I have this XML log4net configuration:
<log4net>
<appender name="myAppender" type="log4net.Appender.RollingFileAppender">
<file value="mylog.txt" />
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="myAppender" />
</root>
</log4net>
I load this configuration with the C# line below, and it works well:
log4net.Config.XmlConfigurator.Configure(path);
PROBLEM: Now I want to set the lockingModel
to MinimalLock
. Programmatically, not in XML.
How to do it?
That would be the equivalent of adding <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
in the XML configuration.