mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
set Trace listeners manually on application startup.
This commit is contained in:
@@ -50,6 +50,11 @@ namespace GARbro.GUI
|
||||
|
||||
void ApplicationStartup (object sender, StartupEventArgs e)
|
||||
{
|
||||
#if DEBUG
|
||||
string trace_dir = Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
Trace.Listeners.Add (new TextWriterTraceListener (Path.Combine (trace_dir, "trace.log")));
|
||||
Trace.AutoFlush = true;
|
||||
#endif
|
||||
Trace.WriteLine ("ApplicationStartup --------------------------------", "GARbro.GUI.App");
|
||||
if (0 != e.Args.Length)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user