logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tasos <tas...@gmail.com>
Subject unintended usage of the same configuration file
Date Sun, 11 Oct 2015 02:25:54 GMT
I'm working on a .net application and i have used this guidance 
There is a project on which i have added in the assemblyinfo.cs
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "foo1.config", 
Watch = true)]
and in another one(different assembly)
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "foo2.config", 
Watch = true)]
My configurations are like this http://pastebin.com/UpSpwMHH
except the different output filenames
(<param name="File" value="foofilename.log"/> )
The problem is that the assembly that uses foo1.config writes on the output
file of the file that is configured in foo2.config.
In each class i use log4net i declare as the guidance site(mentioned 
above) says:

|private static readonly ILog Log = 
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); Thank 
you in advance for your help! |

View raw message