log4net si asp.net MVC – debug!
Pentru cei care se mai chinuie ca , desi au configurat log4net corect, in asp.net mvc nu logheaza nimic… Inceput : pus un log4net.config, pus in global.asax in start Application : System.IO.FileInfo s=new System.IO.FileInfo(Server.MapPath("log4net.config")); log4net.Config.XmlConfigurator.ConfigureAndWatch(s); pus un un controller in homecontroller de tipul : public ActionResult error() { return View("Error", new HandleErrorInfo(new ArgumentException("asd"), […]