logger

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: BSD-3-Clause Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(fmt string, args ...interface{})

Debugf log to level debug

func Errorf

func Errorf(fmt string, args ...interface{})

Errorf log to level error

func FatalIfError

func FatalIfError(err error)

FatalIfError if err is not nil, then log to level fatal and call os.Exit

func FatalfIf

func FatalfIf(cond bool, fmt string, args ...interface{})

FatalfIf log to level error

func Infof

func Infof(fmt string, args ...interface{})

Infof log to level info

func InitLog

func InitLog(level string)

InitLog is a initialization for a logger level can be: debug info warn error

func Warnf

func Warnf(fmt string, args ...interface{})

Warnf log to level warn

Types

This section is empty.

Jump to

Keyboard shortcuts

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