Versions in this module Expand all Collapse all v1 v1.0.3 Nov 8, 2021 v1.0.0 Nov 1, 2021 Changes in this version + const LevelCritical + const LevelDebug + const LevelError + const LevelInfo + const LevelWarning + var ErrInvalidLogLevel = errors.New("invalid log level") + var NoOp = NewLogger("CRITICAL", ioutil.Discard, "") + type BasicLogger struct + Level int + Logger *log.Logger + Prefix string + func NewLogger(level string, out io.Writer, prefix string) (BasicLogger, error) + func (l BasicLogger) Critical(v ...interface{}) + func (l BasicLogger) Debug(v ...interface{}) + func (l BasicLogger) Error(v ...interface{}) + func (l BasicLogger) Fatal(v ...interface{}) + func (l BasicLogger) Info(v ...interface{}) + func (l BasicLogger) Warning(v ...interface{}) + type Logger interface + Critical func(v ...interface{}) + Debug func(v ...interface{}) + Error func(v ...interface{}) + Fatal func(v ...interface{}) + Info func(v ...interface{}) + Warning func(v ...interface{})