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); }
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); } }
public void OnMessage(LogMessage message) { _textListener.OnMessage(message); }