log

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package log is a thin wrapper around Go's standard log/slog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error added in v0.5.0

func Error(msg string, err error, attrs ...any)

func FmtPos added in v0.5.0

func FmtPos(pos token.Position) string

func Info added in v0.5.0

func Info(msg string, attrs ...any)

func SetMode added in v0.5.0

func SetMode(m Mode)

func SetWriter added in v0.5.0

func SetWriter(stderr io.Writer, jsonMode bool)

func Verbose added in v0.5.0

func Verbose(msg string, attrs ...any)

func Warn added in v0.5.0

func Warn(msg string, attrs ...any)

Types

type Mode added in v0.5.0

type Mode int8
const (
	ModeQuiet   Mode = 0
	ModeRegular Mode = 1
	ModeVerbose Mode = 2
)

Jump to

Keyboard shortcuts

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