添加业务模式
This commit is contained in:
@@ -9,3 +9,14 @@ type LoggerInterface interface {
|
||||
Error(ctx context.Context, args ...any)
|
||||
Errorf(ctx context.Context, format string, args ...any)
|
||||
}
|
||||
|
||||
// Debug 使用的日志接口
|
||||
// Waring 警告的日志接口
|
||||
|
||||
type DebugLoggerInterface interface {
|
||||
LoggerInterface
|
||||
Debug(ctx context.Context, args ...any)
|
||||
Debugf(ctx context.Context, format string, args ...any)
|
||||
Warn(ctx context.Context, args ...any)
|
||||
Warnf(ctx context.Context, format string, args ...any)
|
||||
}
|
||||
Reference in New Issue
Block a user