Documentation ¶
Index ¶
- Constants
- func Debug(msg string)
- func Debugf(format string, v ...interface{})
- func Error(msg string)
- func Errorf(format string, v ...interface{})
- func Fatal(msg string)
- func Fatalf(format string, v ...interface{})
- func GenReqID(next http.Handler) http.Handler
- func Info(msg string)
- func Infof(format string, v ...interface{})
- func Panic(msg string)
- func Panicf(format string, v ...interface{})
- func Warn(msg string)
- func Warnf(format string, v ...interface{})
Constants ¶
View Source
const ReqIDTag = "request_id"
ReqIDTag holds tag for request id
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf prints a new formatted message with debug level
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf prints a new formatted message with error level
func Fatal ¶
func Fatal(msg string)
Fatal prints a new message with fatal level and kills the system
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatalf prints a new formatted message with fatal level and kills the system
func GenReqID ¶
GenReqID generates a new request id for each requests and stores in the gls. Storage is cleaned up after request is server.
func Infof ¶
func Infof(format string, v ...interface{})
Infof prints a new formated message with info level
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.