using System; using Velopack.Logging; namespace HardwareMonitorStatusWindow.StatusWindow; internal class SerilogVelopackLogger : IVelopackLogger { public void Log(VelopackLogLevel logLevel, string? message, Exception? exception) { if (exception != null) { Serilog.Log.Error(exception, ""); return; } Serilog.Log.Information("[{time}] [{logLevel}] {message}", DateTime.Now.ToShortTimeString(), logLevel, message); } }