diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-10 11:45:15 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-10 11:45:15 -0400 |
| commit | d8263c70574c6cb27329e270aebe3ba231f5e9ce (patch) | |
| tree | 2f5f49ccce26fb92634a3cf838b362d18acb16eb /MediaBrowser.Common.Implementations/Logging | |
| parent | 7806ccd42f0535f077ab80228e16965d2172dc8a (diff) | |
resharper suggestions in common implementations
Diffstat (limited to 'MediaBrowser.Common.Implementations/Logging')
| -rw-r--r-- | MediaBrowser.Common.Implementations/Logging/NlogManager.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/MediaBrowser.Common.Implementations/Logging/NlogManager.cs b/MediaBrowser.Common.Implementations/Logging/NlogManager.cs index ec93fbd8e..2917632b8 100644 --- a/MediaBrowser.Common.Implementations/Logging/NlogManager.cs +++ b/MediaBrowser.Common.Implementations/Logging/NlogManager.cs @@ -52,10 +52,11 @@ namespace MediaBrowser.Common.Implementations.Logging /// <param name="level">The level.</param> private void AddFileTarget(string path, LogSeverity level) { - var logFile = new FileTarget(); - - logFile.FileName = path; - logFile.Layout = "${longdate}, ${level}, ${logger}, ${message}"; + var logFile = new FileTarget + { + FileName = path, + Layout = "${longdate}, ${level}, ${logger}, ${message}" + }; RemoveTarget("ApplicationLogFile"); logFile.Name = "ApplicationLogFile"; |
