improve logging
This commit is contained in:
parent
a28b56f481
commit
ee31cf06d4
1 changed files with 13 additions and 7 deletions
|
@ -33,13 +33,18 @@ namespace EnvyUpdate
|
||||||
}
|
}
|
||||||
|
|
||||||
private void chkLog_Checked(object sender, RoutedEventArgs e)
|
private void chkLog_Checked(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (!Debug.isVerbose)
|
||||||
{
|
{
|
||||||
Debug.isVerbose = true;
|
Debug.isVerbose = true;
|
||||||
Debug.LogToFile("------");
|
Debug.LogToFile("------");
|
||||||
Debug.LogToFile("INFO Enabled logging to file. Restart Application to see full startup log.");
|
Debug.LogToFile("INFO Enabled logging to file. Restart Application to see full startup log.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void chkLog_Unchecked(object sender, RoutedEventArgs e)
|
private void chkLog_Unchecked(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (Debug.isVerbose)
|
||||||
{
|
{
|
||||||
Debug.LogToFile("INFO Disabled logging to file.");
|
Debug.LogToFile("INFO Disabled logging to file.");
|
||||||
if (File.Exists(Path.Combine(GlobalVars.exedirectory, "envyupdate.log")))
|
if (File.Exists(Path.Combine(GlobalVars.exedirectory, "envyupdate.log")))
|
||||||
|
@ -47,4 +52,5 @@ namespace EnvyUpdate
|
||||||
Debug.isVerbose = false;
|
Debug.isVerbose = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue