Pudu programming language
Menu
API reference

Std.Log.stamped

1 declaration

fn

stamped: &Std.Log.Logger -> Str -> Std.Log.Level -> Str -> Str

This is a callable function.

What it does

A line as it would be written, stamped with a time the caller supplies.

The time is given rather than read from a clock, so a line is a pure function

of what it was told and two runs of the same program can be compared. A caller

wanting the real clock asks Std.Time for it and passes the answer, which is

one line at the edge of the program rather than a clock hidden in every line.

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.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.LogSearch related declarations