logs

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LevelListString added in v0.9.1

func LevelListString() []string

LevelListString returns the list of logs levels

Types

type Level

type Level string

Level is the debug level of a microservice

const (
	// NoLevel is the abscense of an logging level
	NoLevel Level = ""
	// DebugLevel is the debug level
	DebugLevel Level = "debug"
	// InfoLevel is the info level
	InfoLevel Level = "info"
	// WarnLevel is the warn level
	WarnLevel Level = "warn"
	// ErrorLevel is the error level
	ErrorLevel Level = "error"
	// FatalLevel is the fatal level
	FatalLevel Level = "fatal"
	// OffLevel is the off level
	OffLevel Level = "off"
)

func LevelList added in v0.9.1

func LevelList() []Level

LevelList returns the list of logs levels

func Parse

func Parse(level string) (Level, error)

Parse parse a string to a Level

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

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