コード例 #1
0
        private static void Notify(LogMessage message, LogListenerDecorator decorator, Guid?httpRequestId = null)
        {
            if (httpRequestId != null && decorator.SkipHttpRequestIds.Contains(httpRequestId.Value))
            {
                return;
            }

            ILogListener listener = decorator.Listener;

            if (listener.Interceptor != null && listener.Interceptor.ShouldLog(message, listener) == false)
            {
                return;
            }

            listener.OnMessage(message);
        }
コード例 #2
0
        public static void Notify(LogMessage message, Logger logger)
        {
            foreach (LogListenerDecorator decorator in KissLogConfiguration.Listeners.Get())
            {
                ILogListener listener = decorator.Listener;

                if (decorator.ShouldSkipOnMessage(logger))
                {
                    continue;
                }

                if (listener.Parser != null && listener.Parser.ShouldLog(message, listener) == false)
                {
                    continue;
                }

                listener.OnMessage(message, logger);
            }
        }
コード例 #3
0
 public void OnMessage(LogMessage message)
 {
     _textListener.OnMessage(message);
 }