make lazy loaded paths more nimble

This commit is contained in:
Luke Pulverenti
2013-12-29 09:12:29 -05:00
parent e19766b1b7
commit 3488cfecbd
13 changed files with 536 additions and 539 deletions

View File

@@ -186,6 +186,8 @@ namespace MediaBrowser.Common.Implementations.Logging
{
LogFilePath = Path.Combine(LogDirectory, LogFilePrefix + "-" + decimal.Round(DateTime.Now.Ticks / 10000000) + ".log");
Directory.CreateDirectory(Path.GetDirectoryName(LogFilePath));
AddFileTarget(LogFilePath, level);
LogSeverity = level;