精简后的项目:仅保留 api/ui 源码、文档、构建依赖
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package log
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
// Debug logs debug messages.
|
||||
func Debug(ctx context.Context, msg string, args ...any) {
|
||||
getLogger(ctx).DebugContext(ctx, msg, args...)
|
||||
}
|
||||
|
||||
// Info logs info messages.
|
||||
func Info(ctx context.Context, msg string, args ...any) {
|
||||
getLogger(ctx).InfoContext(ctx, msg, args...)
|
||||
}
|
||||
|
||||
// Warn logs warning messages.
|
||||
func Warn(ctx context.Context, msg string, args ...any) {
|
||||
getLogger(ctx).WarnContext(ctx, msg, args...)
|
||||
}
|
||||
|
||||
// Error logs error messages.
|
||||
func Error(ctx context.Context, msg string, args ...any) {
|
||||
getLogger(ctx).ErrorContext(ctx, msg, args...)
|
||||
}
|
||||
Reference in New Issue
Block a user