You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
615 B
18 lines
615 B
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{})
|
|
WithValues(keysAndValues ...interface{}) LogrusLogger
|
|
WithName(name string) LogrusLogger
|
|
WithCallDepth(depth int) LogrusLogger
|
|
|
|
WithItemSampler() LogrusLogger
|
|
// WithoutSampler returns the original logger without sampling
|
|
WithoutSampler() LogrusLogger
|
|
}
|