Remove Log4Net
Add NLog
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user