Versions in this module Expand all Collapse all v1 v1.0.7 Mar 29, 2021 Changes in this version + func Init(opts ...Option) (*logrus.Logger, error) + type Conf struct + CloseConsoleOutput bool + Es EsConf + File FileConf + Level string + type EsConf struct + Addr string + Index string + OpenEsOutput bool + type FileConf struct + CloseFileOutput bool + MaxAge int + MaxSize int + Name string + type HookEs struct + func NewHookEs(conf EsConf) (es *HookEs, err error) + func (es *HookEs) Fire(entry *logrus.Entry) error + func (es *HookEs) Levels() []logrus.Level + type Option func(l *_Log) + func SetConf(c Conf) Option