level

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 1 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func In

func In(le Level, candidates []Level) bool

Types

type Level

type Level int
const (
	Emergency Level = iota + 1
	Alert
	Critical
	Error
	Warning
	Notice
	Info
	Debug
)

日志输出级别

func GetLevelByName

func GetLevelByName(levelName string) Level

GetLevelByName 使用名称获取Level真实的数值

func (Level) GetLevelName

func (le Level) GetLevelName() string

func (Level) GetLevelNameAbbreviation

func (le Level) GetLevelNameAbbreviation() string

Jump to

Keyboard shortcuts

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