tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

packages/log and web/access: an access log you can read (ADR 0077)

Starfleet and toki2 each kept the same infra/log effect (one string,
printed) and the same access line, so a page view was five or six
lines alike: the page, its stylesheet, its scripts, a favicon, with no
time, duration or level.

packages/log is that effect with a level (Debug < Info < Warn < Error)
and key=value fields, and its handlers: to_console (RFC 3339 time in
milliseconds, warn and error to stderr), at_least, silently and
captured. A value that would not split cleanly is quoted, and an entry
is always one line. No dependencies; JSON lines can come later.

web/access.logged times a handler and logs method, path (without the
query string), status, milliseconds, the client and htmx=1. A 5xx is
an error, a 4xx a warning, any other answer to an asset prefix debug,
the rest info: at the default level a page view is one line.

Tested in both backends; CI checks and tests packages/log with the
other packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 2 sem. · 61dc64f8259c8ced13ea5578abb0840ec4d9ef92

Parents 1a113d5

11 fichiers modifiés, 744 ajouts, 4 suppressions