Skip to content

Instantly share code, notes, and snippets.

@vbilopav
Created September 2, 2015 13:43
Show Gist options
  • Save vbilopav/4bcac51efc5ee3d93724 to your computer and use it in GitHub Desktop.
Save vbilopav/4bcac51efc5ee3d93724 to your computer and use it in GitHub Desktop.
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
Log.Info("Application_Start");
}
protected void Application_Error(object sender, EventArgs e)
{
var error = Server.GetLastError();
Log.Error(error, source: error.Source);
}
protected void Application_End(object sender, EventArgs e)
{
Log.Info("Application_End");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment