Send fx's own events through the service's logger (closes #183) #443

Merged
clawbot merged 1 commits from issue-183-fx-logger into next 2026-10-02 17:22:06 +02:00
1 Commits
Author SHA1 Message Date
sneak c0f1331ec5 Send fx's own events through the service's logger (closes #183)
check / check (push) Waiting to run
fx printed its dependency graph and its start and stop hooks through
its console logger on standard error. fx.WithLogger now hands those
events to the service's logger: building the graph at DEBUG, the hooks,
the start and the stopping signal at INFO, failures at ERROR. The fx
logger's constructor takes the configuration, so the level DEBUG=true
sets is in force before fx replays the events it held back; a failure
before that, such as an invalid configuration value, still goes to
fx's console logger. FxLogger in internal/logger holds one SlogLogger
per level. fx moves from v1.20.1, which has no SlogLogger, to v1.24.0.
The README names the Go runtime and that early failure as writers
outside internal/logger.

Model: opus-5-5
2026-10-02 14:58:00 +00:00