Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelOff = "off" LevelError = "error" LevelWarn = "warn" LevelInfo = "info" LevelDebug = "debug" )
Level names persisted in settings and FORTE_LOG_LEVEL.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
Configure sets the global log level and writers. Logs are appended to ~/.config/forte/forte.log (alongside crash.log). When stderrOn, the same records are also written to stderr if the level allows.
func LevelString ¶
func LevelString() string
LevelString returns the canonical name of the active level.
func ParseLevel ¶
ParseLevel maps a user-facing level string to slog.Level. Unknown values default to warn.
func StartupLevel ¶
func StartupLevel() string
StartupLevel returns FORTE_LOG_LEVEL when set, otherwise warn.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.