mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-27 17:09:37 +01:00
log avalonia warnings and write bledy.txt as it goes
This commit is contained in:
@@ -5,7 +5,7 @@ using StarterNG.Infrastructure;
|
||||
|
||||
namespace StarterNG;
|
||||
|
||||
class Program
|
||||
static class Program
|
||||
{
|
||||
|
||||
[STAThread]
|
||||
@@ -39,9 +39,15 @@ class Program
|
||||
}
|
||||
}
|
||||
|
||||
private static AppBuilder WithDiagnosticsLogging(this AppBuilder builder)
|
||||
{
|
||||
DiagnosticsLogSink.Install();
|
||||
return builder;
|
||||
}
|
||||
|
||||
public static AppBuilder BuildAvaloniaApp()
|
||||
=> AppBuilder.Configure<App>()
|
||||
.UsePlatformDetect()
|
||||
.WithInterFont()
|
||||
.LogToTrace();
|
||||
.WithDiagnosticsLogging();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user