happylog

Crates.iohappylog
lib.rshappylog
version0.3.0-b7
sourcesrc
created_at2020-10-09 01:37:32.661515
updated_at2023-11-15 16:25:07.355781
descriptionSimple logging backend for command-line utilities
homepagehttps://github.com/mdekstrand/happylog
repositoryhttps://github.com/mdekstrand/happylog.git
max_upload_size
id297494
size33,933
Michael Ekstrand (mdekstrand)

documentation

README

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.

Commit count: 41

cargo fmt