示例#1
0
        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);
            }
        }
示例#2
0
 private void OpcUaClientHelper_OnLogHappened(object sender, OpcUaHelper.OpcUaLogEventArgs e)
 {
     LogHelper.Logger.Info(e.Log);
 }