level

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int8

Level the log level

const (

	// DebugLevel the debug log level
	DebugLevel Level
	// InfoLevel the info log level
	InfoLevel
	// WarnLevel the warn log level
	WarnLevel
	// ErrorLevel the error log level
	ErrorLevel
	// NoneLevel disable all level log, except for the Writer.Log
	NoneLevel
)

func ParseLevel added in v0.3.2

func ParseLevel(text string) (Level, error)

ParseLevel parse the log level from string

func (Level) MarshalText

func (l Level) MarshalText() (text []byte, err error)

MarshalText implement interface encoding.TextMarshaler

func (Level) String

func (l Level) String() string

String return the description of log level

Jump to

Keyboard shortcuts

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