Enabled rolling file logging.

This commit is contained in:
kay.one 2012-01-22 18:24:16 -08:00
commit d1e3298da1
17 changed files with 817 additions and 185 deletions

View file

@ -139,5 +139,14 @@ namespace NzbDrone.Common
{
return Path.Combine(enviromentProvider.GetUpdateSandboxFolder(), UPDATE_LOG_FOLDER_NAME);
}
public static string GetLogFileName(this EnviromentProvider enviromentProvider)
{
return Path.Combine(enviromentProvider.ApplicationPath, "nzbdrone.log.txt");
}
public static string GetArchivedLogFileName(this EnviromentProvider enviromentProvider)
{
return Path.Combine(enviromentProvider.ApplicationPath, "nzbdrone.log.0.txt");
}
}
}