common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelTrace  = slog.Level(-8)  // new
	LevelDebug  = slog.LevelDebug // -4
	LevelInfo   = slog.LevelInfo  // 0
	LevelNotice = slog.Level(2)   // new
	LevelWarn   = slog.LevelWarn  // 4
	LevelError  = slog.LevelError // 8
	LevelFatal  = slog.Level(12)  // new

	ColorOff ColorMode = iota
	ColorSmart
	ColorMedium
	ColorFull

	SymbolNone SymbolSet = iota
	SymbolUnicodeUp
	SymbolUnicodeDown

	TplTime Tpl = iota
	TplUptime
	TplLevel
	TplSource
	TplMessage
	TplAttrs

	UptimeAdhoc UptimeFormat = iota
	UptimeStd

	AttrsStd AttrsMode = iota
	AttrsBuiltin

	RootGroup = "__root__"
)

Variables

This section is empty.

Functions

func AttrCopy added in v0.4.1

func AttrCopy(attr slog.Attr) slog.Attr

Types

type AttrsMode added in v0.7.0

type AttrsMode int

type ColorMode

type ColorMode int

type ReplaceAttr added in v0.4.0

type ReplaceAttr func(groups []string, a slog.Attr) slog.Attr

type SymbolSet added in v0.2.0

type SymbolSet int

type Tpl added in v0.2.0

type Tpl int

type UptimeFormat added in v0.2.0

type UptimeFormat int

Jump to

Keyboard shortcuts

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