private void OnActionExceptionThrown(object sender, ActionExceptionThrownEventArgs e) { Log($"An error has occurred while running the action: '{e.DashButton.ActionUrl}' " + $"for button '{e.DashButton.Description}'. \n{e.Exception.Message}"); }
private void DashButtonListener_OnActionExceptionThrown(object sender, ActionExceptionThrownEventArgs e) { EventLog.WriteEntry($"An error has occurred while running the action: '{e.DashButton.ActionUrl}' " + $"for button '{e.DashButton.Description}'. \n{e.Exception.Message}", EventLogEntryType.Error); }