public Emitter(ILogEventSink sink, ILogEventMapper mapper = null) { if (sink == null) { throw new ArgumentNullException(); } _sink = sink; _mapper = mapper ?? new DefaultLogEventMapper(); }
public ElasticSearchEventService(ElasticsearchSinkOptions options, ILogEventMapper mapper = null) { var sink = new ElasticsearchSink(options); _emitter = new Emitter(sink, mapper); }