log-elasticsearch-0.7: Structured logging solution (Elasticsearch back end)

Safe HaskellNone
LanguageHaskell2010

Log.Backend.ElasticSearch

Description

Elasticsearch logging back-end.

Synopsis

Documentation

data ElasticSearchConfig Source #

Configuration for the Elasticsearch Logger. See https://www.elastic.co/guide/en/elasticsearch/reference/current/glossary.html for the explanation of terms.

Constructors

ElasticSearchConfig 

Fields

withElasticSearchLogger :: ElasticSearchConfig -> IO Word32 -> (Logger -> IO r) -> IO r Source #

Create an elasticSearchLogger for the duration of the given action, and shut it down afterwards, making sure that all buffered messages are actually written to the Elasticsearch store.

elasticSearchLogger Source #

Arguments

:: ElasticSearchConfig

Configuration.

-> IO Word32

Generate a random 32-bit word for use in document IDs.

-> IO Logger 

Deprecated: Use withElasticSearchLogger instead!

Start an asynchronous logger thread that stores messages using Elasticsearch.

Please use withElasticSearchLogger instead, which is more exception-safe (see the note attached to mkBulkLogger).