Documentation ¶
Overview ¶
syslog 方式记录日志
Index ¶
- func NewSyslogger(ctx context.Context, maxLevel logger.Level, addr string) logger.Logger
- type SysLogger
- func (l *SysLogger) CanLog(level logger.Level) bool
- func (l *SysLogger) Log(level logger.Level, format string, params ...any)
- func (l *SysLogger) LogAlter(format string, params ...any)
- func (l *SysLogger) LogCrit(format string, params ...any)
- func (l *SysLogger) LogDebug(format string, params ...any)
- func (l *SysLogger) LogEmerg(format string, params ...any)
- func (l *SysLogger) LogError(format string, params ...any)
- func (l *SysLogger) LogInfo(format string, params ...any)
- func (l *SysLogger) LogNotice(format string, params ...any)
- func (l *SysLogger) LogWarning(format string, params ...any)
- func (l *SysLogger) SetAddr(addr string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SysLogger ¶
type SysLogger struct { gsyslog.Syslogger MaxLevel logger.Level // contains filtered or unexported fields }
func (*SysLogger) LogWarning ¶
LogWarning log by warning
Click to show internal directories.
Click to hide internal directories.