Help us shape the future of Go! Take the 2026 Go Developer Survey

logging

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 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