Documentation
¶
Overview ¶
Package logger provides structured slog-based logging with configurable output and an observer pattern for log forwarding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogObserver ¶
LogObserver receives a clone of each log record that passes the handler's level filter.
type Option ¶
type Option func(*config)
Option customizes logger construction.
func WithObserver ¶
func WithObserver(observer LogObserver) Option
WithObserver receives records after level filtering and before write.
func WithWriter ¶
WithWriter overrides the log destination. Tests use this to capture the JSON stream deterministically.
Click to show internal directories.
Click to hide internal directories.