Reputation: 433
I had a working log4net which stopped working after I rearranged my sheets into folders. Then everything wen crazy. The log4net was not recognized anymore. I added some xml from a tutorial and then the errors stopped. The logging didn't start though. I have decided to scrap everything. I have deleted all traces of log4net and am following this tutorial now. Stuck at step one though. :( I do not have a properties folder or my assemblyinfo.cs file.
Please help me with this logging functionality.
Upvotes: 0
Views: 1127
Reputation: 532465
Why not just add a properties folder and AssemblyInfo.cs
file? Create a new project and copy the default AssemblyInfo.cs
file from there as a template. Or you could add the XmlConfigurator.Configure();
statement to your Application_Start
method in global.asax.cs
.
protected void Application_Start()
{
XmlConfigurator.Configure();
}
Upvotes: 1