# Conflicts: # .gitignore # App.xaml # App.xaml.cs # AudioWatcher.cs # Delcom/DeviceManagement.cs # Delcom/StoplightIndicator.cs # LICENSE.md # LightController.cs # Properties/AssemblyInfo.cs # Properties/Resources.Designer.cs # Properties/Resources.resx # Properties/Settings.Designer.cs # Properties/Settings.settings # README.md # UpdateCheck.cs # WorkIndicator.csproj # WorkIndicator.sln # WorkIndicator.sln.DotSettings
27 lines
614 B
C#
27 lines
614 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").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");
|
|
}
|
|
} |