diff --git a/core/logc/logs.go b/core/logc/logs.go index ff413dcd..71233545 100644 --- a/core/logc/logs.go +++ b/core/logc/logs.go @@ -27,6 +27,26 @@ func Close() error { return logx.Close() } +// Debug writes v into access log. +func Debug(ctx context.Context, v ...interface{}) { + getLogger(ctx).Debug(v...) +} + +// Debugf writes v with format into access log. +func Debugf(ctx context.Context, format string, v ...interface{}) { + getLogger(ctx).Debugf(format, v...) +} + +// Debugv writes v into access log with json content. +func Debugv(ctx context.Context, v interface{}) { + getLogger(ctx).Debugv(v) +} + +// Debugw writes msg along with fields into access log. +func Debugw(ctx context.Context, msg string, fields ...LogField) { + getLogger(ctx).Debugw(msg, fields...) +} + // Error writes v into error log. func Error(ctx context.Context, v ...any) { getLogger(ctx).Error(v...)