27 Apr 2012 17:12
RE: Duplicate log entries with DLL/EXE combination
Kramer, Mat <MKramer <at> datasci.com>
2012-04-27 15:12:19 GMT
2012-04-27 15:12:19 GMT
Paul, Thanks for the response. Each of the assemblies is configured via the following entries in the AssemblyInfo.cs file: [assembly: log4net.Config.Repository] [assembly: log4net.Config.XmlConfigurator(ConfigFile = "my-assembly-log4net.config")] I've tried changing the "conversionPattern" to determine which appender definition is being used. It is always using the application's appender definition. All output is going to the output file defined there. Any class that needs to log will have a static member like this: private static readonly ILog DebugLog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); -Mat ------- From: Paul Dejardin [mailto:pdejardin <at> factset.com] Sent: Friday, April 27, 2012 7:56 AM To: Log4NET User Subject: RE: Duplicate log entries with DLL/EXE combination How are you configuring? (programmatically, custom attribute, etc.) My guess would be that the 'DebugAppender' is being added twice (once in two separate repositories). You could use the same Repository for both assemblies. How are you creating loggers in code? ------- From: Kramer, Mat [mailto:MKramer <at> datasci.com](Continue reading)
RSS Feed