log

package
v0.0.0-...-5dc576f Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LogFieldError for error log field.
	LogFieldError = "error"

	// LevelDebug for debug log level.
	LevelDebug = "DEBUG"
	// LevelInfo for info log level.
	LevelInfo = "INFO"
	// LevelWarn for warn log level.
	LevelWarn = "WARN"
	// LevelError for error log level.
	LevelError = "ERROR"
	// LevelFatal for fatal log level.
	LevelFatal = "FATAL"
	// LevelPanic for panic log level.
	LevelPanic = "PANIC"
)

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug prints debug level logs to Stdout.

func Error

func Error(err error, msg string)

Error prints error level logs to Stderr.

func Fatal

func Fatal(err error, msg string)

Fatal prints fatal level logs to Stderr.

func Info

func Info(msg string)

Info prints info level logs to Stdout.

func Panic

func Panic(err error, msg string)

Panic prints panic level logs to Stderr.

func Stderr

func Stderr() *zerolog.Logger

Stderr returns logger which prints to console stderr.

func Stdout

func Stdout() *zerolog.Logger

Stdout returns logger which prints to console stdout.

func Warn

func Warn(msg string)

Warn prints warn level logs to Stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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