7 releases
0.3.0-b7 | Nov 15, 2023 |
---|---|
0.3.0-b4 |
|
0.3.0-b3 | Nov 10, 2022 |
0.3.0-b1 | Aug 9, 2022 |
0.1.0 | Oct 9, 2020 |
#994 in Command-line interface
Used in one2html
14KB
303 lines
Console logging backend
This is a logging implementation for log that is designed for console programs.
It is easy to configure, optionally integrates with structopt for configuration,
and can write log messages to stderr
in concert with indicatif for
coordinated logging and progress reporting.
Example
You can use this as follows:
use log::*;
use happylog::*;
fn main() -> () {
initialize(0).unwrap();
info!("info logging message");
}
Major Changes
In 0.3, Happylog changed to use Fern instead of its own log target. It will eventually expose Fern dispatchers to allow for more thorough log configuration.
It also no longer requires log guard objects; it maintains an internal MultiProgress
and allows progress bars to be added to them. Code using happylog should usually not
use MultiProgress
directly.
Acknowledgements
Copyright © 2020–2022 Boise State University. Distributed under the MIT License; see LICENSE.md. This material is based upon work supported by the National Science Foundation under Grant No. IIS 17-51278. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
Dependencies
~2.7–10MB
~88K SLoC