public override void ActivateOptions() { base.ActivateOptions(); _formatter = _formatter ?? (_config.UseRawFormatter ? (ILogglyFormatter) new RawLogglyFormatter(_config) : new LogglyFormatter(_config)); _client = new LogglyClient(_config); _buffer = _buffer ?? new LogglyAsyncBuffer(_config, _client); }
protected override void OnClose() { base.OnClose(); _buffer.Flush(_config.FinalFlushWaitTime); _buffer.Dispose(); _buffer = null; }
internal LogglyAppender(Config config, ILogglyFormatter formatter, ILogglyAsyncBuffer buffer) : this() { _config = config; _formatter = formatter; _buffer = buffer; }