elasticTransport
@abimongo/core / elasticTransport
Variable: elasticTransport
constelasticTransport:RemoteTransporter
Defined in: core/src/utils/logHelpers.ts:61
Create a resilient transporter for elasticsearch logs. This transporter will retry failed log writes with exponential backoff.
Param
The URL of the Elasticsearch instance.
Param
The name of the Elasticsearch index to write logs to.
Example
const elasticTransport = createElasticTransport('http://localhost:9200', 'abimongo-logs');