Add time stamp on console

This commit is contained in:
atef 2023-10-03 16:00:54 +02:00
parent ea5ce5617a
commit 07e0e1f956
1 changed files with 1 additions and 4 deletions

View File

@ -174,18 +174,15 @@ internal static class Program
// If control Special Error return true, we must stop the system.(break;) // If control Special Error return true, we must stop the system.(break;)
var alarmCondition = record.DetectAlarmStates(); var alarmCondition = record.DetectAlarmStates();
if (alarmCondition is not null) if (alarmCondition is not null)
{ {
//stop the system
//return
alarmCondition.LogInfo(); alarmCondition.LogInfo();
} }
record.ControlConstants(); record.ControlConstants();
record.ControlSystemState(); record.ControlSystemState();
$"{record.StateMachine.State}: {record.StateMachine.Message}".LogInfo(); $"{DateTime.Now} : {record.StateMachine.State}: {record.StateMachine.Message}".WriteLine().LogInfo();
var essControl = record.ControlEss().WriteLine().LogInfo(); var essControl = record.ControlEss().WriteLine().LogInfo();