Kōrero, a communication library. Contains code that I find myself copying and pasting often.
The source file for
output/mod.rs, has an example of how
you would implement the various traits provided by this library. In this
TerminalLogger is logging, but the intention is that
another operation would implement:
Logsin order to access a logger that presumably exists on a struct.
Verboseto declare how verbose the logger will be at runtime.
MinVerbosityto declare at what level of verbosity the logger should print. So if the logger is set to
Mediumverbosity, and the
MinVerbosityfor this operation is
Medium, then the user will see some output.
Loggerwhich describes how the logger will write to the terminal (or some other destination.)
A logger would implement
for each type it would like to output.
More on usage here.