Versions in this module Expand all Collapse all v1 v1.0.6 Jan 11, 2023 v1.0.5 Jan 5, 2019 Changes in this version + type ExecExtraItem struct + DBType string + Field string + func NewExecExtraItem(field, dbType string) *ExecExtraItem + type Execer interface + Exec func(entry *logrus.Entry) error + func NewExec(db *sql.DB, tableName string, extraItems ...*ExecExtraItem) Execer + type FilterHandle func(*logrus.Entry) *logrus.Entry + type Hook struct + func Default(db *sql.DB, tableName string, opts ...Option) *Hook + func DefaultWithExtra(db *sql.DB, tableName string, extraItems []*ExecExtraItem, opts ...Option) *Hook + func New(opt ...Option) *Hook + func (h *Hook) Fire(entry *logrus.Entry) error + func (h *Hook) Flush() + func (h *Hook) Levels() []logrus.Level + type Option func(*options) + func SetExec(exec Execer) Option + func SetExtra(extra map[string]interface{}) Option + func SetFilter(filter FilterHandle) Option + func SetLevels(levels ...logrus.Level) Option + func SetMaxQueues(maxQueues int) Option + func SetMaxWorkers(maxWorkers int) Option + func SetOut(out io.Writer) Option