level

package
v0.0.0-...-78a92dc Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceText = "\x1b[37;1mTRACE\x1b[0m"
	DebugText = "\x1b[35;1mDEBUG\x1b[0m"
	InfoText  = "\x1b[34;1mINFO\x1b[0m"
	WarnText  = "\x1b[33;1mWARN\x1b[0m"
	ErrorText = "\x1b[31;1mERROR\x1b[0m"
)

Colors used by TextHandler renderer

View Source
const (
	Trace = slog.Level(-8)
)

Those are missing levels from slog.Logger

Variables

This section is empty.

Functions

func TextFromSlog

func TextFromSlog(level slog.Level) string

func TextToSlog

func TextToSlog(level string) slog.Level

Types

This section is empty.

Jump to

Keyboard shortcuts

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