enums

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceLevel = LogLevel("trace")
	DebugLevel = LogLevel("debug")
	InfoLevel  = LogLevel("info")
	WarnLevel  = LogLevel("warn")
	FatalLevel = LogLevel("fatal")
	PanicLevel = LogLevel("panic")
)
View Source
const (
	JsonLogger  = LoggerFormatType("json")
	AnsiLogger  = LoggerFormatType("ansi")
	PlainLogger = LoggerFormatType("plain")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel string

func (LogLevel) ToLogrusLevel

func (l LogLevel) ToLogrusLevel() (logrus.Level, error)

func (LogLevel) Validate

func (l LogLevel) Validate() error

type LoggerFormatType

type LoggerFormatType string

func (LoggerFormatType) Validate

func (lf LoggerFormatType) Validate() error

Jump to

Keyboard shortcuts

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