add azaion loader

This commit is contained in:
Alex Bezdieniezhnykh
2025-06-01 19:16:49 +03:00
parent 2584b4f125
commit 500db31142
54 changed files with 629 additions and 291 deletions
+26
View File
@@ -0,0 +1,26 @@
using System.Windows;
using Serilog;
namespace Azaion.LoaderUI;
public partial class App
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
Start();
}
private void Start()
{
Log.Logger = new LoggerConfiguration()
.Enrich.FromLogContext()
.MinimumLevel.Information()
.WriteTo.Console()
.WriteTo.File(
path: "Logs/log.txt",
rollingInterval: RollingInterval.Day)
.CreateLogger();
}
}