From 9f0c410c659786ce9ffdc01e019db2dea772eebc Mon Sep 17 00:00:00 2001 From: James Kolpack Date: Thu, 29 Oct 2015 09:34:22 -0400 Subject: [PATCH] Update logging config --- Web/Global.asax.cs | 4 +++- Web/NLog.config | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Web/Global.asax.cs b/Web/Global.asax.cs index 604e92c..f9712ab 100644 --- a/Web/Global.asax.cs +++ b/Web/Global.asax.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Data.Entity; using System.Linq; -using System.Reflection; using System.Web; using System.Web.Mvc; using System.Web.Routing; @@ -10,6 +9,7 @@ using AutoMapper; using MileageTraker.Web.Attributes; using MileageTraker.Web.DAL; using MileageTraker.Web.Utility; +using NLog; namespace MileageTraker.Web { @@ -43,6 +43,8 @@ namespace MileageTraker.Web Database.SetInitializer(new MileageTrakerInitializer()); ModelMetadataProviders.Current = new CustomMetadataProvider(); + + LogManager.GetCurrentClassLogger().Info("Application_Start()"); } } diff --git a/Web/NLog.config b/Web/NLog.config index fbab8de..363bc03 100644 --- a/Web/NLog.config +++ b/Web/NLog.config @@ -17,7 +17,8 @@ for information on customizing logging rules and outputs. --> - + + - + + +