protected override void Write(LogEventInfo logEvent) { if (logger == null) { logger = CreateLogger(); logger.Run(); } var message = ToMessage(logEvent); logger.Send(message); }
protected override void Append(LoggingEvent loggingEvent) { if (logger == null) { logger = CreateLogger(); logger.Run(); } var renderedEvent = RenderLoggingEvent(loggingEvent); logger.Send(renderedEvent); }