public void CreateClient_PoolingDisabled_ClientCreated()
        {
            Init();

            using (var client = FlumeClientFactory.CreateClient())
            {
                Assert.IsNotNull(client);
            }
        }
Beispiel #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);
        }
Beispiel #3
0
        protected override void Write(LogEventInfo logEvent)
        {
            if (logEvent.Level == LogLevel.Off)
            {
                return;
            }

            string formattedText    = Layout.Render(logEvent);
            var    nLogEventAdapter = new NLogEventAdapter(formattedText, logEvent);

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

            client.Append(nLogEventAdapter);
        }