Logger
struct Logger[Inner: Handler & Copyable]Log method, url, status, and latency around the inner handler.
Output goes to stdout via print. The format is intentionally
machine-grep-friendly so you can pipe it through jq /
awk without a structured-logging dep.
Implements Copyable, Handler, Movable
- Fields
inner: Inner: The wrapped handler.prefix: String: Prefix prepended to every log line; defaults to"[flare]".
comptime BodyType = InlineBodyThe Body impl this handler authors its response with.
__init__
def __init__(out self, var inner: Inner, prefix: String = "[flare]") serve
def serve(self, req: Request) -> Response