Skip to content

mdekstrand/happylog

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Rust logging backend for console programs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages