Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func SetLogLevel(lvl Level)
- func SetOutput(w io.Writer)
- func StdErrOutput(level string, args ...interface{})
- func StdOutOutput(level string, args ...interface{})
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Interface
- type Level
- type Standard
- func (_ Standard) Debug(args ...interface{})
- func (_ Standard) Error(args ...interface{})
- func (_ Standard) Fatal(args ...interface{})
- func (_ Standard) Info(args ...interface{})
- func (_ Standard) SetOutput(w io.Writer)
- func (_ Standard) Trace(args ...interface{})
- func (_ Standard) Warn(args ...interface{})
Constants ¶
View Source
const ( TRACE = Level(iota - 2) DEBUG INFO WARN ERROR FATAL )
Allows the ordering of severity to be checked
View Source
const CallerSkipLevel = 3
CallerSkipLevel is the number of levels to skip https://godoc.org/runtime#Caller
Variables ¶
View Source
var ( // FATAL level is never disabled IsError bool IsWarn bool IsInfo bool IsDebug bool IsTrace bool )
View Source
var TimestampRegex string = `\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}` // Ex: "2006-01-02 15:04:05"
Functions ¶
func Fatalf ¶ added in v0.6.0
func Fatalf(format string, args ...interface{})
Output format should be: "timestamp•LOG_LEVEL•filename.go•linenumber•output"
func SetLogLevel ¶
func SetLogLevel(lvl Level)
func StdErrOutput ¶ added in v0.8.0
func StdErrOutput(level string, args ...interface{})
func StdOutOutput ¶ added in v0.8.0
func StdOutOutput(level string, args ...interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.