Created
November 29, 2012 16:51
-
-
Save Dillie-O/4170313 to your computer and use it in GitHub Desktop.
Log4Net Initialization code for Global.asax.cs/Application_Start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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