Cim.Eap.EapLogger.Notice C# (CSharp) 메소드

Notice() 공개 정적인 메소드

public static Notice ( string msg ) : void
msg string
리턴 void
        public static void Notice(string msg) {
            log.Logger.Log(
                new LoggingEvent(MethodBase.GetCurrentMethod().DeclaringType, log.Logger.Repository, "root", Level.Notice, msg,
                                 null));
        }

Usage Example

예제 #1
0
        IDisposable SubscribeLocal(SecsEventSubscription subscription)
        {
            var handler = new Action <SecsMessage>(msg =>
            {
                #region event action
                var filter = subscription.Filter;
                try
                {
                    if (msg.IsMatch(filter))
                    {
                        EapLogger.Info("event[" + filter.Name + "] >> EAP");
                        msg.Name = filter.Name;
                        subscription.Handle(msg);
                    }
                }
                catch (Exception ex)
                {
                    EapLogger.Error("event[" + filter.Name + "] EAP process Error!", ex);
                }
                #endregion
            });

            _eventHandlers.AddHandler(subscription.GetKey(), handler);
            EapLogger.Notice("EAP subscribe event " + subscription.Filter.Name);
            return(new LocalDisposable(() =>
            {
                _eventHandlers.RemoveHandler(subscription.GetKey(), handler);
                EapLogger.Notice("EAP unsubscribe event " + subscription.Filter.Name);
            }));
        }
All Usage Examples Of Cim.Eap.EapLogger::Notice