mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-29 17:59:23 +08:00
18 lines
615 B
Go
18 lines
615 B
Go
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
|
|
}
|