Versions in this module Expand all Collapse all v1 v1.0.4 Jul 5, 2018 Changes in this version + type Execer interface + Exec func(entry *logrus.Entry) error + func NewExec(db *sql.DB, tableName string) Execer + type FilterHandle func(*logrus.Entry) *logrus.Entry + type Hook struct + func Default(db *sql.DB, tableName string) *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