sentinel checks up to lut crc following eol progress model
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user