logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, tags ...any)
	Info(msg string, tags ...any)
	Warn(msg string, tags ...any)
	Error(msg string, tags ...any)
}

func NewSlogLogger

func NewSlogLogger() Logger

type Tee

type Tee struct {
	Writer io.Writer
}

func (*Tee) Close

func (l *Tee) Close()

关闭功能时,日志信息只会输出到标准输出

func (*Tee) Open

func (l *Tee) Open() error

打开功能时,日志信息会同时输出到标准输出和Tee的写入器

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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