mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-23 03:46:12 +00:00
Add config for Trace class
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||
</startup>
|
||||
<system.diagnostics>
|
||||
<trace autoflush="true"/>
|
||||
</system.diagnostics>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
|
||||
@@ -23,6 +23,8 @@ namespace PckStudio
|
||||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
using var traceFile = File.OpenWrite(Path.Combine(Application.StartupPath, "tarce.log"));
|
||||
Trace.Listeners.Add(new TextWriterTraceListener(traceFile));
|
||||
ApplicationScope.Initialize();
|
||||
RPC.Initialize();
|
||||
MainInstance = new MainForm();
|
||||
|
||||
Reference in New Issue
Block a user