Crates.io | happylog |
lib.rs | happylog |
version | 0.3.0-b7 |
source | src |
created_at | 2020-10-09 01:37:32.661515 |
updated_at | 2023-11-15 16:25:07.355781 |
description | Simple logging backend for command-line utilities |
homepage | https://github.com/mdekstrand/happylog |
repository | https://github.com/mdekstrand/happylog.git |
max_upload_size | |
id | 297494 |
size | 33,933 |
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.
You can use this as follows:
use log::*;
use happylog::*;
fn main() -> () {
initialize(0).unwrap();
info!("info logging message");
}
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.
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.