Remove Log4Net
Add NLog
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Net.Mail;
|
||||
using System.Reflection;
|
||||
using System.Web.Security;
|
||||
using MileageTraker.Web.Models;
|
||||
using log4net;
|
||||
using NLog;
|
||||
|
||||
namespace MileageTraker.Web.Email
|
||||
{
|
||||
@@ -12,7 +12,7 @@ namespace MileageTraker.Web.Email
|
||||
/// </summary>
|
||||
public class EmailNotificationService
|
||||
{
|
||||
private static readonly ILog Logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
private readonly string _emaialFromAddress;
|
||||
private readonly string _resetPasswordSubject;
|
||||
@@ -71,7 +71,7 @@ namespace MileageTraker.Web.Email
|
||||
}
|
||||
catch (SmtpException ex)
|
||||
{
|
||||
Logger.Error("Failed to send mail", ex);
|
||||
Logger.Error(ex, "Failed to send mail");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user