sentinel checks up to lut crc following eol progress model

This commit is contained in:
Stoyan Zlatev
2024-11-19 11:12:25 +01:00
parent 4f2ad65acb
commit 9caf4671fb
42 changed files with 1163 additions and 785 deletions
@@ -2,8 +2,36 @@
{
using Common.Hardware.SIRT;
using NLog;
using NLog.Config;
using NLog.Targets;
using System;
internal class AppHost
{
public static SIRTBroadcaster SIRTBroadcaster = new SIRTBroadcaster();
public static ILogger CreateNLogger(string name)
{
LogManager.Configuration = new LoggingConfiguration();
LogManager.ThrowConfigExceptions = true;
LogManager.ThrowExceptions = true;
LogManager.AutoShutdown = true;
LogManager.Configuration.AddTarget(new FileTarget(name)
{
CreateDirs = true,
KeepFileOpen = true,
FileName = $"${{CurrentDir}}/{name}/{DateTime.Now:yyyy-MM-dd}.txt"
});
LogManager.Configuration.AddRule(LogLevel.Trace, LogLevel.Fatal, name);
LogManager.LogFactory.ReconfigExistingLoggers(true);
LogManager.ReconfigExistingLoggers(true);
return LogManager.GetLogger(name);
}
}
}