chain

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

chain 使用日志链记录日志

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(l ...logger.Logger) logger.Logger

Types

type ChainLogger

type ChainLogger struct {
	Loggers []logger.Logger
}

ChainLogger 组合多个 logger.Logger

func (*ChainLogger) CanLog

func (c *ChainLogger) CanLog(level logger.Level) bool

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL