Files
mfer/internal/log
sneak 3eba887717
check / check (push) Waiting to run
Move internal/log from apex/log to log/slog (closes #77)
internal/log now logs through log/slog. After Init, records go to a small
slog.Handler that prints the same lines as before, colored by the same
rule; before Init they go to slog.Default(). Level filtering, the helpers
and their call sites are unchanged. With NO_COLOR set on a terminal, log
lines are no longer colored.

pterm is dropped: mfer used it only to print progress lines to the
configured stdout, which fmt now does directly, outside slog. apex/log,
pterm and their indirect dependencies leave go.mod; golang.org/x/term,
already in the module graph, becomes direct.

simplelog is not imported: importing it replaces slog's default handler,
in every program that imports package mfer, with one that writes to
stdout. The logger stays process-global, since injecting it would change
package mfer's API.

Model: opus-5-5
2026-10-04 13:05:36 +00:00
..