2023-03-13 10:03:23 +08:00
|
|
|
package log
|
|
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
|
|
type Logger interface {
|
|
|
|
|
Debug(ctx context.Context, msg string, keysAndValues ...interface{})
|
|
|
|
|
Info(ctx context.Context, msg string, keysAndValues ...interface{})
|
|
|
|
|
Warn(ctx context.Context, msg string, err error, keysAndValues ...interface{})
|
|
|
|
|
Error(ctx context.Context, msg string, err error, keysAndValues ...interface{})
|
2023-03-13 12:34:56 +08:00
|
|
|
WithValues(keysAndValues ...interface{}) Logger
|
|
|
|
|
WithName(name string) Logger
|
|
|
|
|
WithCallDepth(depth int) Logger
|
2023-03-13 10:03:23 +08:00
|
|
|
}
|