I have code that used:
log4net.2.0.8\lib\net45-full\log4net.dll
XmlConfigurator.Configure();
when I change this to use log4net\2.0.8\lib\netstandard1.3\log4net.dll
I get no overload for method 'Configure' takes 0 arguments.
I found the solution here was to use the code:
var logRepo = LogManager.GetRepository(Assembly.GetEntryAssembly());
XmlConfigurator.Configure(logRepo, new FileInfo("log4net.config"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With