Versions in this module Expand all Collapse all v1 v1.5.0 Jun 23, 2022 Changes in this version + const LJSON + const LUTC + const Ldate + const Llongfile + const Lmicroseconds + const Lshortfile + const LstdFlags + const Ltime + func ClearFlag(flag int) + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func Fatal(v ...interface{}) + func Fatalf(format string, v ...interface{}) + func HasFlag(flag int) bool + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func Loggable(level Level) bool + func Output(calldepth int, level, s string) error + func SetColorize(v bool) + func SetFlags(flag int) + func SetLevel(v Level) + func SetOutput(w io.Writer) + func SetPrefix(pre string) + func ToggleFlag(flag int) + func Trace(v ...interface{}) + func Tracef(format string, v ...interface{}) + func Warning(v ...interface{}) + func Warningf(format string, v ...interface{}) + type Level int + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const None + const TraceLevel + const WarnLevel + func GetLevel() Level + func (v *Level) Set(value string) error + func (v Level) String() (name string) + type Logger struct + func DefaultLogger() *Logger + func New(out io.Writer, prefix string, flag int) (logger *Logger) + func (l *Logger) ClearFlag(flag int) + func (l *Logger) Debug(v ...interface{}) + func (l *Logger) Debugf(format string, v ...interface{}) + func (l *Logger) Error(v ...interface{}) + func (l *Logger) Errorf(format string, v ...interface{}) + func (l *Logger) Fatal(v ...interface{}) + func (l *Logger) Fatalf(format string, v ...interface{}) + func (l *Logger) Flags() int + func (l *Logger) HasFlag(flag int) bool + func (l *Logger) Info(v ...interface{}) + func (l *Logger) Infof(format string, v ...interface{}) + func (l *Logger) Level() Level + func (l *Logger) Loggable(level Level) bool + func (l *Logger) Output(calldepth int, level, s string) error + func (l *Logger) Prefix() string + func (l *Logger) SetColorize(enabled bool) + func (l *Logger) SetFlags(flag int) + func (l *Logger) SetLevel(v Level) + func (l *Logger) SetOutput(w io.Writer) + func (l *Logger) SetPrefix(prefix string) + func (l *Logger) ToggleFlag(flag int) + func (l *Logger) Trace(v ...interface{}) + func (l *Logger) Tracef(format string, v ...interface{}) + func (l *Logger) Warning(v ...interface{}) + func (l *Logger) Warningf(format string, v ...interface{}) + func (l *Logger) Writer() io.Writer