Remove Log4Net

Add NLog
This commit is contained in:
2015-10-29 00:00:49 -04:00
parent 5984cdf862
commit d2584a6cb7
11 changed files with 2550 additions and 60 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ using MileageTraker.Web.DAL;
using MileageTraker.Web.Models;
using MileageTraker.Web.Utility;
using MileageTraker.Web.ViewModels.Account;
using NLog;
namespace MileageTraker.Web.Controllers
{
@@ -30,7 +31,7 @@ namespace MileageTraker.Web.Controllers
var action = filterContext.RouteData.Values["action"].ToString();
var loggerName = string.Format("{0}Controller.{1}", controller, action);
log4net.LogManager.GetLogger(loggerName).Error(string.Empty, filterContext.Exception);
LogManager.GetLogger(loggerName).Error(filterContext.Exception);
}
base.OnException(filterContext);