Hercules log
Last updated
Last updated
Location: module.
HerculesLog
converts incoming to according to and then sends resulting events with an instance of . Additional details on events mapping can be found in module's .
HerculesLog
is configured with HerculesLogSettings
, having 2 mandatory parameters:
Option
Description
HerculesSink
An instance of sink to send events with.
Stream
Name of the Hercules stream to send events to.
Ensure that provided sink instance is configured with an API key with sufficient permissions to write into selected stream.
Prefer to use a singleton instance of IHerculesSink
everywhere in the application, including HerculesLog
. Sink instances involve background tasks and are therefore quite expensive.
Reporting of lost of log events generally depends on the nature of IHerculesSink
implementation. Default implementation in repository provides a set of counters for these purposes.