logger

package
v0.0.0-...-dab46ad Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//Logger 日志记录器
	Logger *zap.Logger
)

Functions

func Closer

func Closer() (errs []error)

Closer .

func Init

func Init(v *viper.Viper)

Init 日志初始化

Types

type KafkaLogger

type KafkaLogger struct {
	Producer sarama.SyncProducer
	Topic    string
}

KafkaLogger .

func (*KafkaLogger) Write

func (m *KafkaLogger) 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