Files
WorkIndicator/Program.cs
T
ckaczor a55ef1f27e
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 37s
Make sure sessions get removed and add more logging
2026-08-25 15:42:24 -04:00

31 lines
794 B
C#

using Microsoft.Extensions.Logging;
using Serilog;
using System;
using Velopack;
namespace WorkIndicator;
internal static class Program
{
[STAThread]
public static void Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.WriteTo.File("log.txt")
.WriteTo.Debug(outputTemplate: "{Timestamp:u} [{Level}] ({SourceContext}) {Message}{NewLine}{Exception}")
.CreateLogger();
Log.Logger.Information("");
Log.Logger.Information("Start");
var loggerFactory = new LoggerFactory().AddSerilog(Log.Logger);
VelopackApp.Build().Run(loggerFactory.CreateLogger("Install"));
var app = new App();
app.InitializeComponent();
app.Run();
Log.Logger.Information("End");
}
}