Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContextKeyRequestID contextKey = "reqId" ContextKeyDocumentId contextKey = "documentId" )
Variables ¶
View Source
var GLogger *logger = &logger{}
Functions ¶
This section is empty.
Types ¶
type Field ¶
func GetFieldsFunctions ¶
func GetFieldsReqId ¶
func GetFieldsTrace ¶
func GetFieldsWorkerID ¶
type Logger ¶
type Logger interface {
Debug(args ...interface{})
Debugf(template string, args ...interface{})
Info(args ...interface{})
Infof(template string, args ...interface{})
Warn(args ...interface{})
Warnf(template string, args ...interface{})
Error(args ...interface{})
Errorf(template string, args ...interface{})
DPanic(args ...interface{})
DPanicf(template string, args ...interface{})
Fatal(args ...interface{})
Fatalf(template string, args ...interface{})
// log with field
InfoWithField(msg string, f ...Field)
}
Logger methods interface
Click to show internal directories.
Click to hide internal directories.