From 7c70f805db2a534940f9e2415b242da313c84565 Mon Sep 17 00:00:00 2001 From: Yun <995116474@qq.com> Date: Fri, 15 Nov 2024 17:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 interfaces.go 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) +}