1# aldebaran-log
2
3What a site writes to its log, and the rule that it never writes a visitor.
4A line is built from closed types only: a route the site declares (never the
5path asked for), one of four method words, the status and the time taken. There
6is nothing to hand it an address, a header, a query or a body.
7
8| Item | What it is |
9|---|---|
10| `Route` | A trait the site's route enum implements: `name`, and optionally a `level` for a status and a `note`. |
11| `Served<R>` | One request served; `level()` and `Display` (`GET page -> 200 in 3 ms`). |
12| `Level` | `Debug`, `Info`, `Warn`, `Error`: a 5xx is always `Error`, a 4xx is `Warn` unless the route says otherwise. |
13| `Method::parse` | Four words; anything else is `OTHER`. |
14
15No runtime: an adapter writes it to the Worker console or a logger.