Created IConfigurationManager

This commit is contained in:
LukePulverenti
2013-03-04 00:43:06 -05:00
parent 401b56c732
commit 2ca4b7d03a
106 changed files with 1343 additions and 2437 deletions

View File

@@ -1,5 +1,4 @@
using MediaBrowser.Common.Kernel;
using NLog;
using NLog;
using NLog.Config;
using NLog.Targets;
using System.ComponentModel;
@@ -18,20 +17,15 @@ namespace MediaBrowser.ServerApplication.Logging
/// The _ui thread
/// </summary>
private readonly TaskScheduler _uiThread;
/// <summary>
/// The _kernel
/// </summary>
private readonly IKernel _kernel;
/// <summary>
/// Initializes a new instance of the <see cref="LogWindow" /> class.
/// </summary>
/// <param name="kernel">The kernel.</param>
public LogWindow(IKernel kernel)
public LogWindow()
{
InitializeComponent();
_uiThread = TaskScheduler.FromCurrentSynchronizationContext();
_kernel = kernel;
Loaded += LogWindow_Loaded;
}
@@ -94,7 +88,7 @@ namespace MediaBrowser.ServerApplication.Logging
target.Name = name;
config.AddTarget(name, target);
var level = _kernel.Configuration.EnableDebugLevelLogging ? LogLevel.Debug : LogLevel.Info;
var level = LogLevel.Debug;
var rule = new LoggingRule("*", level, target);
config.LoggingRules.Add(rule);