diff --git a/interfaces.go b/interfaces.go new file mode 100644 index 0000000..ef0f8ec --- /dev/null +++ b/interfaces.go @@ -0,0 +1,11 @@ +package loggerx + +import "context" + +// 简单使用的日志接口 +type LoggerInterface interface { + Info(ctx context.Context, args ...any) + Infof(ctx context.Context, format string, args ...any) + Error(ctx context.Context, args ...any) + Errorf(ctx context.Context, format string, args ...any) +}