Versions in this module Expand all Collapse all v1 v1.0.0 Apr 29, 2020 Changes in this version + var ErrCannotCreateIndex = fmt.Errorf("cannot create index") + type ElasticHook struct + func NewAsyncElasticHook(client *elastic.Client, host string, level logrus.Level, index string) (*ElasticHook, error) + func NewAsyncElasticHookWithFunc(client *elastic.Client, host string, level logrus.Level, ...) (*ElasticHook, error) + func NewBulkProcessorElasticHook(client *elastic.Client, host string, level logrus.Level, index string) (*ElasticHook, error) + func NewBulkProcessorElasticHookWithFunc(client *elastic.Client, host string, level logrus.Level, ...) (*ElasticHook, error) + func NewElasticHook(client *elastic.Client, host string, level logrus.Level, index string) (*ElasticHook, error) + func NewElasticHookWithFunc(client *elastic.Client, host string, level logrus.Level, ...) (*ElasticHook, error) + func (hook *ElasticHook) Cancel() + func (hook *ElasticHook) Fire(entry *logrus.Entry) error + func (hook *ElasticHook) Levels() []logrus.Level + type IndexNameFunc func() string + type Message struct + Host string + Level string + Message string + Timestamp string + type MessageTransformer func(Message)