mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 08:26:30 +00:00
26 lines
553 B
C#
26 lines
553 B
C#
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();
|
|
|
|
}
|
|
} |