I have the same situation. What we did is use 1 application configuration for all projects and use links to link to it.
In app.config for your application, you set the log4net configuration section
<configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> </configSections>
And later install Appender:
<log4net> <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> ...
And in every class that you want to write, you put a line like this:
private static readonly ILog log = log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
Then each class captures the same log (singleton). Will this work for you?
Queso
source share