Documentation ¶ Overview ¶ Package log is a thin wrapper around Go's standard log/slog. Index ¶ func Error(msg string, err error, attrs ...any) func FmtPos(pos token.Position) string func Info(msg string, attrs ...any) func SetMode(m Mode) func SetWriter(stderr io.Writer, jsonMode bool) func Verbose(msg string, attrs ...any) func Warn(msg string, attrs ...any) type Mode 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 ) Source Files ¶ View all Source files handler.golog.go Click to show internal directories. Click to hide internal directories.