Warn() public static method

public static Warn ( object msg ) : void
msg object
return void
Example #1
0
 public static IDisposable SubscribeS6F11(this IEAP eap, string eventName, Action <SecsMessage> callback)
 {
     try {
         var ceid = eap.EventReportLink.Events.FirstOrDefault(id => id.Name == eventName);
         return(eap.Subscribe(
                    new SecsMessage(16, 11, eventName,
                                    Item.L(
                                        eap.Driver.LinkDataIdCreator(string.Empty),
                                        eap.Driver.CeidLinkCreator(ceid.Id),
                                        Item.L())),
                    callback));
     } catch (Exception ex) {
         EapLogger.Warn($"EAP.Subscribe_S6F11 error, event({eventName});{ex.Message}");
         return(null);
     }
 }
Example #2
0
 public void Warning(string msg)
 {
     EapLogger.Warn("SECS/GEM Warning: " + msg);
 }