I am writing an application that will require 2 different loggers, each logging in a totally different way. When I create each instance of the log4net logger how can I get it to read from its own config section within the same app.config file. Is this possible as all I have seen so far is it taking the default
multi log4net instances using different configurations from the same config file
252 views Asked by Gav At
1
You can log two or more things independently without using separate config files.
Then in your config file you can create them like this
By selecting additivity as false then they will log separately. You can then populate their appenders to write the info as needed.