添加接口的定义

This commit is contained in:
Yun
2024-11-15 17:59:35 +08:00
parent a9c3693323
commit 7c70f805db
+11
View File
@@ -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)
}