添加接口的定义
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user