extension host: route go-plugin hclog output into the service slog logger #259

Closed
opened 2026-10-27 13:35:36 +00:00 by sam · 0 comments
Owner

extension.NewHost takes an hclog.Logger; archied, archie-messaging and secretengine build hclog at a hardcoded Warn level writing to stderr, so extension lifecycle logs bypass the service log, the dashboard feed and trace ids, and go-plugin debug output is dropped. go-plugin requires hclog, so this needs an hclog->slog adapter. Candidates on pkg.go.dev are immature (ValerySidorin/shclog v0.0.1, openkcm/plugin-sdk hclog2slog); maintainer to choose a library or approve a small in-tree adapter.

Acceptance criteria

Extension lifecycle and go-plugin logs appear in the owning service's log file and dashboard feed at the configured [log] level.

Close reason

In-tree hclog->slog adapter; extension hosts take the service *slog.Logger


Imported from beads archie-core-fzb3x.7 · GitHub #1908 · type task · priority P3 · created 2026-10-25 · closed 2026-10-25

extension.NewHost takes an hclog.Logger; archied, archie-messaging and secretengine build hclog at a hardcoded Warn level writing to stderr, so extension lifecycle logs bypass the service log, the dashboard feed and trace ids, and go-plugin debug output is dropped. go-plugin requires hclog, so this needs an hclog->slog adapter. Candidates on pkg.go.dev are immature (ValerySidorin/shclog v0.0.1, openkcm/plugin-sdk hclog2slog); maintainer to choose a library or approve a small in-tree adapter. ### Acceptance criteria Extension lifecycle and go-plugin logs appear in the owning service's log file and dashboard feed at the configured [log] level. ### Close reason In-tree hclog->slog adapter; extension hosts take the service *slog.Logger --- _Imported from beads `archie-core-fzb3x.7` · GitHub #1908 · type task · priority P3 · created 2026-10-25 · closed 2026-10-25_
sam added the lowtask labels 2026-10-27 13:35:36 +00:00
sam self-assigned this 2026-10-27 13:35:36 +00:00
sam closed this issue 2026-10-27 13:35:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#259