/Logging/Global.asax.cs

http://github.com/teamaton/toolbelt · C# · 51 lines · 36 code · 14 blank · 1 comment · 0 complexity · d6878bdeda6cf87a41a36d96b390575d MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.SessionState;
  8. using log4net.Config;
  9. namespace Logging
  10. {
  11. public class Global : System.Web.HttpApplication
  12. {
  13. protected void Application_Start(object sender, EventArgs e)
  14. {
  15. XmlConfigurator.ConfigureAndWatch(new FileInfo(Server.MapPath("web.log4net.config")));
  16. //XmlConfigurator.Configure();
  17. }
  18. protected void Session_Start(object sender, EventArgs e)
  19. {
  20. }
  21. protected void Application_BeginRequest(object sender, EventArgs e)
  22. {
  23. }
  24. protected void Application_AuthenticateRequest(object sender, EventArgs e)
  25. {
  26. }
  27. protected void Application_Error(object sender, EventArgs e)
  28. {
  29. }
  30. protected void Session_End(object sender, EventArgs e)
  31. {
  32. }
  33. protected void Application_End(object sender, EventArgs e)
  34. {
  35. }
  36. }
  37. }