I have a .NET Remoting application for which I am using log4net. I have a number of clients and a server that is hosted in IIS. IIS has a Virtual Directory called RemotingServerEngine with a file "RemotingEngine.rem" in it.
Currently, the server has a web.config file with a log4net section in it, and this works great.
I would like to remove the log4net configuration section from web.config (it could get really large) and put it in a separate file.
The steps I have followed are:
* remove the log4net section from web.config
* create a file "log4net.config" in the same place as web.config and put all the logging information in there.
* add a line to AssemblyInfo.cs: [assembly: log4net.Config.DOMConfigurator( ConfigFile="Log4Net.config",Watch=true )]
When I try to do this, everything compiles, but it doesn't log. I have tried moving the log4net.config file all over the place: in the directories with dlls, into C:\, anyplace I could think of. No dice. It can't seem to find the file no matter where I put it.
What am I doing wrong?
The log4net version I am using is 1.2.0.30714.
Thanks,
-Johan
