logger

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v1.1.0

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

Logger represents logger instance

func New

func New() *Logger

New returns new logger instance

func (*Logger) Logger added in v1.1.0

func (l *Logger) Logger() *zap.SugaredLogger

Logger returns logger instance engine

func (*Logger) SetLevel added in v1.1.0

func (l *Logger) SetLevel(level string) *zap.SugaredLogger

SetLevel sets logging level. Available options are "debug", "info", "warn", "error", "fatal", "panic". If different value is passed as argument, info level is used by default. Returns logger instance engine.

Jump to

Keyboard shortcuts

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