log

package
v0.0.0-...-abca24b Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(mode string) log.Logger

Types

type ZapLogger

type ZapLogger struct {
	Sync func() error
	// contains filtered or unexported fields
}

ZapLogger is a logger impl.

func NewZapLogger

func NewZapLogger(encoder zapcore.Encoder, level zap.AtomicLevel, opts ...zap.Option) *ZapLogger

NewZapLogger return a zap logger.

func (*ZapLogger) Log

func (l *ZapLogger) Log(level log.Level, keyvals ...interface{}) error

Log Implementation of logger interface.

Jump to

Keyboard shortcuts

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