Exemplo n.º 1
0
        // pre action log
        private string GetLogLine(ConsoleMenuOperation actualOperation)
        {
            string actionTime  = timeStamp.ToString();
            string actionPlace = menuHeader;
            string actionName  = actualOperation.Title;

            return($"Operation start time: <{actionTime}> | Operation origin: <{actionPlace}> | Operation name: <{actionName}>");
        }
Exemplo n.º 2
0
 private void ProcessOperationLog(ConsoleMenuOperation launchedOperation)
 {
     LogToFile(GetLogLine(launchedOperation));
 }