mirror of
https://github.com/ckaczor/WorldClockStatusWindow.git
synced 2026-01-13 17:23:18 -05:00
27 lines
616 B
C#
27 lines
616 B
C#
using Microsoft.Extensions.Logging;
|
|
using Serilog;
|
|
using System;
|
|
using Velopack;
|
|
|
|
namespace WorldClockStatusWindow;
|
|
|
|
internal class Program
|
|
{
|
|
[STAThread]
|
|
public static void Main(string[] args)
|
|
{
|
|
Log.Logger = new LoggerConfiguration().WriteTo.File("log.txt").CreateLogger();
|
|
|
|
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");
|
|
}
|
|
} |