logger

package
v0.0.0-...-009436c Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(log log.Logger, l LogLevel, keyvals ...interface{})

Log is used to handle the error of logger.Log globally

func LogLevelFromString

func LogLevelFromString(l string) level.Option

LogLevelFromString determines log level to string, defaults to all,

Types

type LogLevel

type LogLevel string
const (
	Debug LogLevel = "debug"
	Info  LogLevel = "info"
	Warn  LogLevel = "warn"
	Error LogLevel = "error"
)

Jump to

Keyboard shortcuts

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