HerculesLog
converts incoming log events to Hercules events according to Hercules log event schema and then sends resulting events with an instance of IHerculesSink. Additional details on events mapping can be found in module's description on GitHub.HerculesLog
is configured with HerculesLogSettings
, having 2 mandatory parameters:HerculesSink
Stream
IHerculesSink
everywhere in the application, including HerculesLog
. Sink instances involve background tasks and are therefore quite expensive.IHerculesSink
implementation. Default implementation in vostok.hercules.client repository provides a set of counters for these purposes.