Expand description
Kōrero, a communication library. Contains code that I find myself copying and pasting often.
§TerminalLogger
Provides a TerminalLogger
to use out of the box. Construction requires a Verbosity
level to make use of MinVerbosity
checks.
The source file for TerminalLogger, output/mod.rs, has an example of how
you would implement the various traits provided by this library. In this
particular instance, 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 toMediumverbosity, and theMinVerbosityfor this operation isMedium, 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 Prints
for each type it would like to output.
More on usage here.