Pudu programming language
Menu
API reference

Std.Log.Logger

1 declaration

type

Logger

This declaration introduces a public type.

What it does

What a program says, held as a value.

print is enough for a script and not enough for anything unattended: no

level, so nothing can be turned down; no name, so nothing can be told apart;

no fields, so nothing can be searched. A logger carries those, and a line

built from it inherits them.

Building a line is separate from writing it, as shaping is separate from

writing in [[Std Fmt]] and [[Std Out]]. A library that logs should be able to

hand a line to whatever its caller chose rather than write to a stream the

caller did not pick.

Read the signature

  • This declaration has no value signature because it introduces a type or trait.

Back to Std.LogSearch related declarations