From ab1065a567151fd45fcf4698cd7d18708b94e35f Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Thu, 21 Feb 2013 15:26:35 -0500 Subject: removed static logger --- .../Controls/ItemUpdateNotification.xaml.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.ServerApplication/Controls/ItemUpdateNotification.xaml.cs') 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 /// /// The logger /// - private static readonly ILogger Logger = LogManager.GetLogger("MultiItemUpdateNotification"); + private readonly ILogger Logger; /// /// Gets the children changed event args. @@ -34,8 +34,15 @@ namespace MediaBrowser.ServerApplication.Controls /// /// Initializes a new instance of the class. /// - public ItemUpdateNotification() + public ItemUpdateNotification(ILogger logger) { + if (logger == null) + { + throw new ArgumentNullException("logger"); + } + + Logger = logger; + InitializeComponent(); Loaded += ItemUpdateNotification_Loaded; -- cgit v1.2.3