aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/Controls/ItemUpdateNotification.xaml.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-21 15:26:35 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-21 15:26:55 -0500
commitab1065a567151fd45fcf4698cd7d18708b94e35f (patch)
tree1863297fbd2966ceea85bc2a6c1991c5bab2c589 /MediaBrowser.ServerApplication/Controls/ItemUpdateNotification.xaml.cs
parent4019b9260bc1bcf23adb856cbd2b9857575fd08f (diff)
removed static logger
Diffstat (limited to 'MediaBrowser.ServerApplication/Controls/ItemUpdateNotification.xaml.cs')
-rw-r--r--MediaBrowser.ServerApplication/Controls/ItemUpdateNotification.xaml.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/MediaBrowser.ServerApplication/Controls/ItemUpdateNotification.xaml.cs b/MediaBrowser.ServerApplication/Controls/ItemUpdateNotification.xaml.cs
index 8cb42f0e5..312e70e66 100644
--- a/MediaBrowser.ServerApplication/Controls/ItemUpdateNotification.xaml.cs
+++ b/MediaBrowser.ServerApplication/Controls/ItemUpdateNotification.xaml.cs
@@ -20,7 +20,7 @@ namespace MediaBrowser.ServerApplication.Controls
/// <summary>
/// The logger
/// </summary>
- private static readonly ILogger Logger = LogManager.GetLogger("MultiItemUpdateNotification");
+ private readonly ILogger Logger;
/// <summary>
/// Gets the children changed event args.
@@ -34,8 +34,15 @@ namespace MediaBrowser.ServerApplication.Controls
/// <summary>
/// Initializes a new instance of the <see cref="ItemUpdateNotification" /> class.
/// </summary>
- public ItemUpdateNotification()
+ public ItemUpdateNotification(ILogger logger)
{
+ if (logger == null)
+ {
+ throw new ArgumentNullException("logger");
+ }
+
+ Logger = logger;
+
InitializeComponent();
Loaded += ItemUpdateNotification_Loaded;