Documentation
¶
Overview ¶
Package logging provides structured logging utilities for Aviary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableConsole ¶
func EnableConsole()
EnableConsole mirrors slog + stdlib logs to stderr in addition to the log file. This is intended for the foreground server command, not short-lived CLI commands.
func Init ¶
func Init() error
Init configures global slog + stdlib log output to write to Aviary's log file. Console logging is disabled by default and can be enabled explicitly for long-running server processes.
func InitMemory ¶ added in v0.7.27
func InitMemory() error
InitMemory configures global slog + stdlib log output like Init, but keeps the latest output in memory instead of a file, for processes such as `aviary watch` whose data directory is removed when they exit: no log file holds that directory open. Whichever of Init and InitMemory runs first wins.
Types ¶
This section is empty.