private void ProcessOnErrorDataReceived(object sender, string e) { if (!string.IsNullOrEmpty(e)) { OnLogEntryReceived(ChefLogEntry.CriticalError(e)); } }
private void ProcessOnErrorDataReceived(object sender, string e) { if (!string.IsNullOrEmpty(e)) { Logger.Debug($"Chef error: {e}"); OnLogEntryReceived(ChefLogEntry.CriticalError(e)); } }
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}"); } } }
protected virtual void OnLogEntryReceived(ChefLogEntry e) { LogEntryReceived?.Invoke(this, e); }