public static void Error(string message) { try { if (LogCreated != null) { LogCreated(null, LogCreatedEventArgs.CreateError(message)); } } catch (Exception) { } }
private void OnRsspCommLogCreated(object sender, LogCreatedEventArgs e) { if (e.IsInfo) { LogUtility.Info(e.Message); } else if (e.IsWarning) { LogUtility.Warning(e.Message); } else { LogUtility.Error(e.Message); } }