logger

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 3 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 {
	With(fields ...zapcore.Field) Logger
	Info(msg string, fields ...zapcore.Field)
	Error(msg string, fields ...zapcore.Field)
	Debug(msg string, fields ...zapcore.Field)
	Sync() error
}

type ZapLoggerAdapter

type ZapLoggerAdapter struct {
	*zap.Logger
}

func NewLogger

func NewLogger(name string, dev bool) (*ZapLoggerAdapter, error)

func (ZapLoggerAdapter) With

func (l ZapLoggerAdapter) With(fields ...zapcore.Field) Logger

Jump to

Keyboard shortcuts

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