Esempio n. 1
0
 private void ProcessOnErrorDataReceived(object sender, string e)
 {
     if (!string.IsNullOrEmpty(e))
     {
         OnLogEntryReceived(ChefLogEntry.CriticalError(e));
     }
 }
Esempio n. 2
0
 private void ProcessOnErrorDataReceived(object sender, string e)
 {
     if (!string.IsNullOrEmpty(e))
     {
         Logger.Debug($"Chef error: {e}");
         OnLogEntryReceived(ChefLogEntry.CriticalError(e));
     }
 }
Esempio n. 3
0
 private void ProcessOnOutputDataReceived(object sender, string e)
 {
     if (!string.IsNullOrEmpty(e))
     {
         try
         {
             OnLogEntryReceived(ChefLogEntry.Parse(e));
         }
         catch (Exception exception)
         {
             Logger.Fatal(exception, $"Could not parse and log {e}");
         }
     }
 }
Esempio n. 4
0
 protected virtual void OnLogEntryReceived(ChefLogEntry e)
 {
     LogEntryReceived?.Invoke(this, e);
 }