Versions in this module Expand all Collapse all v1 v1.6.1 Dec 28, 2019 v1.6.0 May 4, 2019 Changes in this version + type HookedLogger struct + func (l *HookedLogger) AddHook(h log.Hook) + func (l *HookedLogger) GetLevel() string + func (l *HookedLogger) GetLogDest() string + func (l *HookedLogger) IsDebug() bool + func (l *HookedLogger) Reopen() error + func (l *HookedLogger) SetLevel(level string) + func (l *HookedLogger) WithConn(conn net.Conn) *log.Entry + type Level uint8 + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + func (level Level) String() string + type Logger interface + AddHook func(h log.Hook) + GetLevel func() string + GetLogDest func() string + IsDebug func() bool + Reopen func() error + SetLevel func(level string) + WithConn func(conn net.Conn) *log.Entry + func GetLogger(dest string, level string) (Logger, error) + type LoggerHook interface + Reopen func() error + func NewLogrusHook(dest string) (LoggerHook, error) + type LogrusHook struct + func (hook *LogrusHook) Fire(entry *log.Entry) error + func (hook *LogrusHook) Levels() []log.Level + func (hook *LogrusHook) Reopen() error + type OutputOption int + const OutputFile + const OutputNull + const OutputOff + const OutputStderr + const OutputStdout + func (o OutputOption) String() string