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
+3 -2
View File
@@ -1,5 +1,6 @@
using System.Linq;
using System.Web.Mvc;
using NLog;
namespace MileageTraker.Web.Attributes
{
@@ -17,8 +18,8 @@ namespace MileageTraker.Web.Attributes
var hostAddress = filterContext.HttpContext.Request.UserHostAddress;
log4net.LogManager.GetLogger(loggerName)
.InfoFormat("UserHostAddress: {0}, username: {1}, params: {{{2}}}", hostAddress, username, @params);
LogManager.GetLogger(loggerName)
.Info("UserHostAddress: {0}, username: {1}, params: {{{2}}}", hostAddress, username, @params);
}
base.OnActionExecuting(filterContext);
}