diff options
Diffstat (limited to 'MediaBrowser.Common.Implementations/Logging/NlogManager.cs')
| -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"; |
