Adjust logging and add debugger option
All checks were successful
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 1m12s

This commit is contained in:
2026-01-27 19:59:51 -05:00
parent 13ae4c74bc
commit 2e14ff032b
6 changed files with 81 additions and 35 deletions

View File

@@ -0,0 +1,18 @@
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);
}
}