#logging #console

happylog

Simple logging backend for command-line utilities

2 unstable releases

0.2.0 Apr 28, 2021
0.1.0 Oct 9, 2020

#168 in Command-line interface

Download history 7/week @ 2021-02-25 5/week @ 2021-03-04 6/week @ 2021-03-11 3/week @ 2021-03-18 44/week @ 2021-03-25 4/week @ 2021-04-01 7/week @ 2021-04-08 8/week @ 2021-04-15 19/week @ 2021-04-22 19/week @ 2021-04-29 6/week @ 2021-05-06 12/week @ 2021-05-13 96/week @ 2021-05-20 78/week @ 2021-05-27 7/week @ 2021-06-03 11/week @ 2021-06-10

53 downloads per month
Used in one2html

MIT license

7KB
132 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(LevelFilter::Info).unwrap();
    info!("info logging message");
}

Acknowledgements

Copyright © 2020 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.8–4MB
~86K SLoC