Skip to content

Anders429/build_logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build_logger

GitHub Workflow Status crates.io docs.rs License

A logger to be used in build scripts.

Allows logging through the log crate within a build script. Log messages are displayed as Cargo warning messages.

Usage

To use build_logger, initialize it by calling init(). After this, using the log crate's logging facade will display as warnings through Cargo.

//! build.rs

fn main() {
    build_logger::init().expect("could not initialize build_logger");

    log::info!("Hello, world!");
}

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages