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

            _emitter = new Emitter(sink, mapper);
        }