private void OpcUaClienthelper_OnLogHappened(object sender, OpcUaHelper.OpcUaLogEventArgs e) { string message = DateTime.Now.ToString(dateString) + e.Log + System.Environment.NewLine; try { asyncUpMessage(message); } catch (AggregateException ex) { asyncUpMessage(DateTime.Now.ToString(dateString) + ex.Message + System.Environment.NewLine); } }
private void OpcUaClientHelper_OnLogHappened(object sender, OpcUaHelper.OpcUaLogEventArgs e) { LogHelper.Logger.Info(e.Log); }