1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-22 09:15:48 +02:00

Minor refactoring of log file path variables

This commit is contained in:
chylex 2017-03-21 15:04:28 +01:00
parent 71f67e9191
commit aef9c591e9

View File

@ -33,7 +33,8 @@ static class Program{
public static readonly string PluginDataPath = Path.Combine(StoragePath, "TD_Plugins");
public static readonly string ConfigFilePath = Path.Combine(StoragePath, "TD_UserConfig.cfg");
private static readonly string LogFilePath = Path.Combine(StoragePath, "TD_Log.txt");
private static readonly string ErrorLogFilePath = Path.Combine(StoragePath, "TD_Log.txt");
private static readonly string ConsoleLogFilePath = Path.Combine(StoragePath, "TD_Console.txt");
public static readonly string ScriptPath = Path.Combine(ProgramPath, "scripts");
public static readonly string PluginPath = Path.Combine(ProgramPath, "plugins");
@ -58,7 +59,7 @@ private static void Main(){
return;
}
Reporter = new Reporter(LogFilePath);
Reporter = new Reporter(ErrorLogFilePath);
Reporter.SetupUnhandledExceptionHandler(BrandName+" Has Failed :(");
if (Arguments.HasFlag(Arguments.ArgRestart)){
@ -134,7 +135,7 @@ private static void Main(){
UserAgent = BrowserUtils.HeaderUserAgent,
Locale = Arguments.GetValue(Arguments.ArgLocale, string.Empty),
CachePath = StoragePath,
LogFile = Path.Combine(StoragePath, "TD_Console.txt"),
LogFile = ConsoleLogFilePath,
#if !DEBUG
BrowserSubprocessPath = BrandName+".Browser.exe",
LogSeverity = Arguments.HasFlag(Arguments.ArgLogging) ? LogSeverity.Info : LogSeverity.Disable