4 releases
0.1.12 | May 6, 2022 |
---|---|
0.1.11 | May 6, 2022 |
0.1.1 | May 6, 2022 |
0.1.0 | Jul 3, 2021 |
#394 in HTTP client
Used in lib-todoist
21KB
408 lines
Kōrero
Kōrero means to talk, speak or converse in Māori. This crate is a library for interfacing with things, just as kōrero helps people interface with one another.
lib.rs
:
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:
Logs
in order to access a logger that presumably exists on a struct.Verbose
to declare how verbose the logger will be at runtime.MinVerbosity
to declare at what level of verbosity the logger should print. So if the logger is set toMedium
verbosity, and theMinVerbosity
for this operation isMedium
, then the user will see some output.Logger
which 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.
Dependencies
~4–16MB
~227K SLoC