protected override void Append(LoggingEvent logEvent)
        {
            if (logEvent.Level == Level.Off)
            {
                return;
            }

            string formattedText = RenderLoggingEvent(logEvent);
            var nLogEventAdapter = new Log4NetEventAdapter(formattedText, logEvent);

            var client = FlumeClientFactory.CreateClient();
            client.Append(nLogEventAdapter);
        }
Exemplo n.º 2
0
        protected override void Append(LoggingEvent logEvent)
        {
            if (logEvent.Level == Level.Off)
            {
                return;
            }

            string formattedText    = RenderLoggingEvent(logEvent);
            var    nLogEventAdapter = new Log4NetEventAdapter(formattedText, logEvent);

            var client = FlumeClientFactory.CreateClient(Client, Host, Port);

            client.Append(nLogEventAdapter);
        }