logger

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChanWriter = &ChannelWriter{
	clients: &sync.Map{},
}
View Source
var Logger *zap.Logger

Logger 日志记录器

Functions

func InitLogger

func InitLogger(logPath, level string)

New 实例化

Types

type ChannelWriter added in v1.1.0

type ChannelWriter struct {
	// contains filtered or unexported fields
}

func (*ChannelWriter) Add added in v1.1.0

func (writer *ChannelWriter) Add(loggerChan chan []byte)

func (ChannelWriter) Remove added in v1.1.0

func (writer ChannelWriter) Remove(loggerChan chan []byte)

func (*ChannelWriter) Write added in v1.1.0

func (writer *ChannelWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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