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 -3
View File
@@ -4,13 +4,13 @@ using System.Linq;
using System.Reflection;
using MileageTraker.Web.DAL;
using MileageTraker.Web.Models;
using log4net;
using NLog;
namespace MileageTraker.Web.Email
{
public class ServiceReminderEmailService : IDisposable
{
private static readonly ILog Logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
protected readonly DataService DataService = new DataService();
protected readonly EmailNotificationService EmailService = new EmailNotificationService();
@@ -20,7 +20,7 @@ namespace MileageTraker.Web.Email
Logger.Info("Starting vehicle service notifications");
var serviceReminders = DataService.GetUpcomingServiceReminders().ToList();
Logger.Debug("Got " + serviceReminders.Count + " service reminders.");
Logger.Info("Got " + serviceReminders.Count + " service reminders.");
SendAdminEmails(serviceReminders);