From 33f44e79323e6418c570e013f081dd0d3ddc7229 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 6 Sep 2014 08:32:08 -0700 Subject: [PATCH] New: log all startup events to log file at trace and above --- src/NzbDrone.Common/Instrumentation/LogTargets.cs | 2 +- src/NzbDrone.Core/Instrumentation/ReconfigureLogging.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Common/Instrumentation/LogTargets.cs b/src/NzbDrone.Common/Instrumentation/LogTargets.cs index 4628540af..382c09b5c 100644 --- a/src/NzbDrone.Common/Instrumentation/LogTargets.cs +++ b/src/NzbDrone.Common/Instrumentation/LogTargets.cs @@ -94,7 +94,7 @@ namespace NzbDrone.Common.Instrumentation fileTarget.ArchiveNumbering = ArchiveNumberingMode.Rolling; fileTarget.Layout = FILE_LOG_LAYOUT; - var loggingRule = new LoggingRule("*", LogLevel.Info, fileTarget); + var loggingRule = new LoggingRule("*", LogLevel.Trace, fileTarget); LogManager.Configuration.AddTarget("appfile", fileTarget); LogManager.Configuration.LoggingRules.Add(loggingRule); diff --git a/src/NzbDrone.Core/Instrumentation/ReconfigureLogging.cs b/src/NzbDrone.Core/Instrumentation/ReconfigureLogging.cs index c98ae80e8..1d73928b9 100644 --- a/src/NzbDrone.Core/Instrumentation/ReconfigureLogging.cs +++ b/src/NzbDrone.Core/Instrumentation/ReconfigureLogging.cs @@ -10,7 +10,8 @@ using NzbDrone.Core.Messaging.Events; namespace NzbDrone.Core.Instrumentation { - public class ReconfigureLogging : IHandleAsync, IHandleAsync + public class ReconfigureLogging : IHandleAsync, + IHandle { private readonly IConfigFileProvider _configFileProvider; @@ -84,7 +85,7 @@ namespace NzbDrone.Core.Instrumentation Reconfigure(); } - public void HandleAsync(ApplicationStartedEvent message) + public void Handle(ApplicationStartedEvent message) { Reconfigure(); }