logging

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalLogger = logrus.New()

Functions

func Init

func Init(level Level)

Types

type Level

type Level string
const (
	Trace Level = "trace"
	Debug Level = "debug"
	Info  Level = "info"
	Warn  Level = "warn"
	Error Level = "error"
	Fatal Level = "fatal"
)

func LevelFromString

func LevelFromString(level string) Level

/ Convert a string to a logging level.

func (Level) Integer

func (l Level) Integer() logrus.Level

/ Convert a logging level to a logrus level (uint32).

Jump to

Keyboard shortcuts

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