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.
 
 

21 lines
370 B

package logx
import (
"context"
"time"
)
type Logger interface {
Info(...any)
Infof(string, ...any)
Slow(...any)
Slowf(string, ...any)
Debug(...any)
Debugf(string, ...any)
Error(...any)
Errorf(string, ...any)
WithCallerSkip(skip int) Logger
WithContext(context.Context) Logger
WithDuration(d time.Duration) Logger
WithFields(fields ...LogField) Logger
}