Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(level, format string)
Setup configures the default slog logger with the given level and format. format can be "text" (human-readable) or "json" (machine-parseable). level can be "debug", "info", "warn", "error".
func SetupWriter ¶
SetupWriter configures the default slog logger writing to w.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.