Safe Haskell | None |
---|---|
Language | Haskell2010 |
Log.Backend.ElasticSearch.V5.Lens
Description
Lensified version of Log.Backend.ElasticSearch.
- data ElasticSearchConfig
- esServer :: Lens' ElasticSearchConfig Text
- esIndex :: Lens' ElasticSearchConfig Text
- esMapping :: Lens' ElasticSearchConfig Text
- esLogin :: Lens' ElasticSearchConfig (Maybe (EsUsername, EsPassword))
- esLoginInsecure :: Lens' ElasticSearchConfig Bool
- defaultElasticSearchConfig :: ElasticSearchConfig
- withElasticSearchLogger :: ElasticSearchConfig -> IO Word32 -> (Logger -> IO r) -> IO r
Documentation
data ElasticSearchConfig #
Configuration for the Elasticsearch Logger
. See
https://www.elastic.co/guide/en/elasticsearch/reference/current/glossary.html
for the explanation of terms.
Instances
esServer :: Lens' ElasticSearchConfig Text #
Elasticsearch server address.
esIndex :: Lens' ElasticSearchConfig Text #
Elasticsearch index name.
esMapping :: Lens' ElasticSearchConfig Text #
Elasticsearch mapping name.
esLogin :: Lens' ElasticSearchConfig (Maybe (EsUsername, EsPassword)) #
Elasticsearch basic authentication username and password.
esLoginInsecure :: Lens' ElasticSearchConfig Bool #
Allow basic authentication over non-TLS connections.
defaultElasticSearchConfig :: ElasticSearchConfig #
Sensible defaults for ElasticSearchConfig
.
withElasticSearchLogger :: ElasticSearchConfig -> IO Word32 -> (Logger -> IO r) -> IO r #
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.