logging

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MessageLabel is message label key for logger.
	MessageLabel = "msg"
)

Variables

This section is empty.

Functions

func Err

func Err(err *error) (string, string)

Err returns key and error message for logging

func Msg

func Msg(message string) (string, string)

Msg returns MESSAGE_LABEL and message of argument.

func Msgf

func Msgf(format string, args ...interface{}) (string, string)

Msgf returns MessageLabel and formatted message of argument.

func NewLogger

func NewLogger(logfmt string, loglevel string) log.Logger

NewLogger returns log.Logger instance.

logfmt is output log format. loglevel is output log level. More details,Plase check the following URL. https://godoc.org/github.com/prometheus/common/promlog/flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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