Skip to content

Instantly share code, notes, and snippets.

@Dillie-O
Created November 29, 2012 16:51
Show Gist options
  • Save Dillie-O/4170313 to your computer and use it in GitHub Desktop.
Save Dillie-O/4170313 to your computer and use it in GitHub Desktop.
Log4Net Initialization code for Global.asax.cs/Application_Start
var log4NetPath = Server.MapPath("~/log4net.config");
log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(log4NetPath));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment