Pudu programming language
Menu
API reference

Std.Log.lineOf

1 declaration

fn

lineOf: &Std.Log.Logger -> Str -> Std.Log.Level -> Str -> Std.Log.Line

This is a callable function.

What it does

The line a logger would make, before anything writes it.

For a program that hands its lines somewhere other than a stream, and for

checking what a logger produces by comparing values rather than by capturing

output — the same reason [[Std Out]] keeps rendered apart from write.

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