Documentation
¶
Index ¶
- func Debug(msg string, args ...any)
- func DebugContext(ctx context.Context, msg string, args ...any)
- func Error(msg string, args ...any)
- func ErrorContext(ctx context.Context, msg string, args ...any)
- func Info(msg string, args ...any)
- func InfoContext(ctx context.Context, msg string, args ...any)
- func NewContext(ctx context.Context, l Logger) context.Context
- func SetLogger(logger Logger)
- func Warn(msg string, args ...any)
- func WarnContext(ctx context.Context, msg string, args ...any)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugContext ¶
DebugContext 打印调试日志
func ErrorContext ¶
ErrorContext 打印错误日志
func InfoContext ¶
InfoContext 打印信息日志
func NewContext ¶
NewContext 创建一个新的上下文,将logger存入其中
Types ¶
Click to show internal directories.
Click to hide internal directories.