Pudu programming language
Menu
API reference

Std.Log.logfmt

1 declaration

fn

logfmt: Std.Log.Line -> Str

This is a callable function.

What it does

Every part of a line written as a key=value pair, message included.

The shape a log ends up in whenever anything other than a person reads it. A

message left outside the pairs is the one part a reader has to find by

position, and position is what breaks when a field is added:

timestamp=2026-08-31T12:00:00Z level=INFO logger=checkout order=A17 message=captured

Parts that are empty are left out rather than written as nothing, so a line

with no name carries no logger=.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.

Back to Std.LogSearch related declarations