log

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = zerolog.New(os.Stderr).With().Timestamp().Logger()

Functions

func Debug

func Debug() *zerolog.Event

func Debugf

func Debugf(fmts string, a ...interface{})

Debug for debugging messages.

func Error

func Error() *zerolog.Event

func Errorf

func Errorf(fmts string, a ...interface{})

Error for notable errors.

func Fatal

func Fatal() *zerolog.Event

func Info

func Info() *zerolog.Event

func Infof

func Infof(fmts string, a ...interface{})

Info for regular messages.

func Print

func Print(fmts string, args ...interface{})

Print - simple print, without timestamp, without regard to log level.

func SetLevel

func SetLevel(lvalue zerolog.Level)

SetLevel sets the log level.

func Trace

func Trace() *zerolog.Event

func Tracef

func Tracef(fmts string, a ...interface{})

Trace for debugging messages.

func With

func With() zerolog.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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