Log level halfway there

This commit is contained in:
Mark McDowall 2013-07-24 08:08:31 -07:00
commit 84af2be14a
7 changed files with 87 additions and 3 deletions

View file

@ -10,6 +10,7 @@ namespace NzbDrone.Common
private const string NZBDRONE_DB = "nzbdrone.db";
private const string NZBDRONE_LOG_DB = "logs.db";
private const string BACKUP_ZIP_FILE = "NzbDrone_Backup.zip";
private const string NLOG_CONFIG_FILE = "nlog.config";
private static readonly string UPDATE_SANDBOX_FOLDER_NAME = "nzbdrone_update" + Path.DirectorySeparatorChar;
private static readonly string UPDATE_PACKAGE_FOLDER_NAME = "nzbdrone" + Path.DirectorySeparatorChar;
@ -70,7 +71,6 @@ namespace NzbDrone.Common
return Path.Combine(GetProperCapitalization(dirInfo), dirInfo.GetFiles(fileInfo.Name)[0].Name);
}
public static string GetAppDataPath(this IAppFolderInfo appFolderInfo)
{
return appFolderInfo.AppDataFolder;
@ -135,5 +135,10 @@ namespace NzbDrone.Common
{
return Path.Combine(GetAppDataPath(appFolderInfo), NZBDRONE_LOG_DB);
}
public static string GetNlogConfigPath(this IAppFolderInfo appFolderInfo)
{
return Path.Combine(appFolderInfo.StartUpFolder, NLOG_CONFIG_FILE);
}
}
}