Documentation ¶
Overview ¶
fn 使用函数方式记录日志,函数由调用者提供
Index ¶
- func New(ctx context.Context, logFunc func(logger.Level, string, ...any), ...) logger.Logger
- type FnLogger
- func (l *FnLogger) CanLog(level logger.Level) bool
- func (l *FnLogger) Log(level logger.Level, format string, params ...any)
- func (l *FnLogger) LogAlter(format string, params ...any)
- func (l *FnLogger) LogCrit(format string, params ...any)
- func (l *FnLogger) LogDebug(format string, params ...any)
- func (l *FnLogger) LogEmerg(format string, params ...any)
- func (l *FnLogger) LogError(format string, params ...any)
- func (l *FnLogger) LogInfo(format string, params ...any)
- func (l *FnLogger) LogNotice(format string, params ...any)
- func (l *FnLogger) LogWarning(format string, params ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.