package
0.0.27
Repository: https://github.com/jedrp/go-core.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
New logger.
NewAsyncElasticHook creates new hook with asynchronous log.
NewAsyncElasticHookWithFunc creates new asynchronous hook with function that provides the index name.
NewBulkProcessorElasticHook creates new hook that uses a bulk processor for indexing.
NewBulkProcessorElasticHookWithFunc creates new hook with function that provides the index name.
NewElasticHook creates new hook.
No description provided by the author
NewElasticHookWithFunc creates new hook with function that provides the index name.
NewEntry.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HookType type of hook es (elastic search).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrCannotCreateIndex Fired if the index is not created.
No description provided by the author

# Structs

ElasticHook is a logrus hook for ElasticSearch.
TextFormatter formats logs into text.
LogrusLogger logrus wrapper implementation LogHook# fired when log fired Elasticsearch hook format "type=[es];host=host_url;index-prefix=prefix;sniff=true|false;mode=sync|async".

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

IndexNameFunc get index name.