Documentation
¶
Overview ¶
Package logger 直接调用loggger来输出日志
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 Warn(msg string, args ...any)
- func WarnContext(ctx context.Context, msg string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugContext ¶
DebugContext logs at [LevelDebug] with the given context.
func ErrorContext ¶
ErrorContext logs at [LevelError] with the given context.
func InfoContext ¶
InfoContext logs at [LevelInfo] with the given context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.