Documentation ¶
Index ¶
- Variables
- type Level
- type Logger
- func (log *Logger) Debug(args ...interface{})
- func (log *Logger) Debugf(format string, args ...interface{})
- func (log *Logger) Error(args ...interface{})
- func (log *Logger) Errorf(format string, args ...interface{})
- func (log *Logger) Fatal(args ...interface{})
- func (log *Logger) Fatalf(format string, args ...interface{})
- func (log *Logger) Info(args ...interface{})
- func (log *Logger) Infof(format string, args ...interface{})
- func (log *Logger) Panic(args ...interface{})
- func (log *Logger) Panicf(format string, args ...interface{})
- func (log *Logger) SetLevel(l Level)
- func (log *Logger) Warn(args ...interface{})
- func (log *Logger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DebugPrefix allows you to change its styling DebugPrefix = "[\033[32mDEBUG\033[0m]" // InfoPrefix allows you to change its styling InfoPrefix = "[\033[34m~INFO\033[0m]" // WarnPrefix allows you to change its styling WarnPrefix = "[\033[33m!WARN\033[0m]" // ErrorPrefix allows you to change its styling ErrorPrefix = "[\033[31mERROR\033[0m]" // FatalPrefix allows you to change its styling FatalPrefix = "[\033[31mFATAL\033[0m]" // PanicPrefix allows you to change its styling PanicPrefix = "[\033[31mPANIC\033[0m]" )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.