Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StdLogger ¶
type StdLogger interface { // With with any map data, the value of key must be string, int ... basic value With(m ...zap.Field) *zap.Logger // Debug print the debug log if the len(args) is 0, the args will be ignored Debug(msg string, fields ...zap.Field) Info(msg string, fields ...zap.Field) Warn(msg string, fields ...zap.Field) Error(msg string, fields ...zap.Field) Fatal(msg string, fields ...zap.Field) }
StdLogger the standard logger
func GetContextLogger ¶
GetLogger extract logger from context
Click to show internal directories.
Click to hide internal directories.