Documentation ¶
Index ¶
- func Debug(ctx context.Context, args ...any)
- func Debugf(ctx context.Context, f string, args ...any)
- func Error(ctx context.Context, args ...any)
- func ErrorIf(ctx context.Context, err error)
- func Errorf(ctx context.Context, f string, args ...any)
- func Fatal(ctx context.Context, args ...any)
- func FatalIfError(ctx context.Context, err error)
- func Fatalf(ctx context.Context, f string, args ...any)
- func GetStack() string
- func Info(ctx context.Context, args ...any)
- func Infof(ctx context.Context, f string, args ...any)
- func InitialLog(logDir, module string, maxAge, rotationTime time.Duration, debug bool)
- func Warn(ctx context.Context, args ...any)
- func Warnf(ctx context.Context, f string, args ...any)
- type GormLogFormatter
- type TusClientLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitialLog ¶
InitialLog 初始化日志
Types ¶
type GormLogFormatter ¶
type GormLogFormatter struct{}
func (*GormLogFormatter) Printf ¶
func (f *GormLogFormatter) Printf(s string, args ...any)
type TusClientLogger ¶
type TusClientLogger struct{}
Click to show internal directories.
Click to hide internal directories.