Documentation
¶
Overview ¶
Package logger provides dual-output structured logging.
Terminal output is human-readable with colors. File output is structured JSON written to <sharedDir>/.beamdrop/beamdrop.log.
Call Init() early in main to configure the default slog logger. All other packages should use slog.Info/Debug/Warn/Error directly. This package also provides a Fatal helper (slog has no Fatal).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
Fatal logs at error level and exits the process. slog does not provide a Fatal level, so this is a convenience wrapper.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.