Hello, I would greatly appreciate some direction on how to have a shared assembly log to different sources: Event Log and a File.
We have a common logging assembly (a VS 2005 C# solution) that is referenced by multiple other VS 2005 C# web solutions as the primary logging method. The desired solution is to have other C# web applications reference this shared assembly. Based on the public logging method called by the web application, the common logging assembly will log to either the server's Event Log or a RollingLogFileAppender. Currently irregardless as to which method is called, both the RollingLogFileAppender and the Event Log are being logged. I suspect my issue is related to the use of the "root" attribute in the web.config. However, I've banged my head against a wall all day with no solution. Can someone please provide me some direction and/or a simple example of how a shared logging assembly can provide multiple logging options (File, EventLog, ect..) when referenced by another another solution??? I've attached the web.config and .cs file with the public methods for further details. http://www.nabble.com/file/p25880332/Web.config Web.config http://www.nabble.com/file/p25880332/Log.cs Log.cs Thanks kindly, -Joe -- View this message in context: http://www.nabble.com/Logging-to-multiple-Appenders-via-Shared-Assembly-tp25880332p25880332.html Sent from the Log4net - Users mailing list archive at Nabble.com.
