Commit Graph
5 Commits
Author SHA1 Message Date
sneak 86436449c5 Emit slog attributes from every handler (closes #19, closes #24)
check / check (push) Successful in 34s
check / check (pull_request) Successful in 32s
Handle never read the record's attributes, and WithAttrs and WithGroup
returned the receiver unchanged. The JSON and webhook handlers also marshaled
slog.Record itself, whose attributes are unexported.

Each handler now carries a handlerAttrs value, copied rather than mutated, so
sibling loggers cannot leak attributes into each other. JSON and webhook
output nest groups as objects; the console appends key=value pairs with dotted
group keys, quoted as slog.NewTextHandler quotes them, invalid UTF-8
included. Logged values are never written to. In JSON the record's own fields
win a key collision, and a repeated key keeps its last value unless both are
groups, which merge; the README documents both.

Deviation: DEL is quoted on the console; the stdlib leaves it bare.

Model: opus-5-5
2026-09-28 10:49:46 +00:00
sneak 31c9ed52cb preparing for 1.0 2024-06-14 05:53:22 -07:00
sneak d8f35dd031 closer to ready 2024-06-10 02:39:01 -07:00
sneak 60cb410c32 update module path 2024-05-22 14:53:57 -07:00
sneak f21c916eb3 initial 2024-05-13 21:43:47 -07:00