logger

package
v0.0.0-...-c307d98 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: GPL-3.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 {
	Debug(msg interface{})
	Info(msg interface{})
	Error(msg interface{})
	Fatal(msg interface{})
	With(key string, value interface{}) Logger
	WithError(err error) Logger
	Sync() error
}

type ZapLogger

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

func NewDevelopmentLogger

func NewDevelopmentLogger(encoding, logLevel string) (*ZapLogger, error)

func NewProductionLogger

func NewProductionLogger(logLevel string) (*ZapLogger, error)

func (*ZapLogger) Debug

func (z *ZapLogger) Debug(msg interface{})

func (*ZapLogger) Error

func (z *ZapLogger) Error(msg interface{})

func (*ZapLogger) Fatal

func (z *ZapLogger) Fatal(msg interface{})

func (*ZapLogger) Info

func (z *ZapLogger) Info(msg interface{})

func (*ZapLogger) Sync

func (z *ZapLogger) Sync() error

func (*ZapLogger) With

func (z *ZapLogger) With(key string, value interface{}) Logger

func (*ZapLogger) WithError

func (z *ZapLogger) WithError(err error) Logger

Jump to

Keyboard shortcuts

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