Documentation ¶
Overview ¶
chain 使用日志链记录日志
Index ¶
- func New(l ...logger.Logger) logger.Logger
- type ChainLogger
- func (c *ChainLogger) CanLog(level logger.Level) bool
- func (c *ChainLogger) Log(level logger.Level, format string, params ...any)
- func (c *ChainLogger) LogAlter(format string, params ...any)
- func (c *ChainLogger) LogCrit(format string, params ...any)
- func (c *ChainLogger) LogDebug(format string, params ...any)
- func (c *ChainLogger) LogEmerg(format string, params ...any)
- func (c *ChainLogger) LogError(format string, params ...any)
- func (c *ChainLogger) LogInfo(format string, params ...any)
- func (c *ChainLogger) LogNotice(format string, params ...any)
- func (c *ChainLogger) LogWarning(format string, params ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainLogger ¶
ChainLogger 组合多个 logger.Logger
func (*ChainLogger) Log ¶
func (c *ChainLogger) Log(level logger.Level, format string, params ...any)
func (*ChainLogger) LogAlter ¶
func (c *ChainLogger) LogAlter(format string, params ...any)
func (*ChainLogger) LogCrit ¶
func (c *ChainLogger) LogCrit(format string, params ...any)
func (*ChainLogger) LogDebug ¶
func (c *ChainLogger) LogDebug(format string, params ...any)
func (*ChainLogger) LogEmerg ¶
func (c *ChainLogger) LogEmerg(format string, params ...any)
func (*ChainLogger) LogError ¶
func (c *ChainLogger) LogError(format string, params ...any)
func (*ChainLogger) LogInfo ¶
func (c *ChainLogger) LogInfo(format string, params ...any)
func (*ChainLogger) LogNotice ¶
func (c *ChainLogger) LogNotice(format string, params ...any)
func (*ChainLogger) LogWarning ¶
func (c *ChainLogger) LogWarning(format string, params ...any)
Click to show internal directories.
Click to hide internal directories.