精简后的项目:仅保留 api/ui 源码、文档、构建依赖

This commit is contained in:
gallery
2026-09-11 16:11:09 +08:00
commit 490e85634e
457 changed files with 86862 additions and 0 deletions
+25
View File
@@ -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...)
}