========================================

wd<em>log GitHub Actions wd</em>log on crates.io wd_log on docs.rs License

This is a Rust Log Crate. Log output is mainly achieved through macros. Log composite output will be supported in future releases. The following features are now supported.

The current version is preliminary and will get better in the future.

Getting Started

lazy-static.rs is available on crates.io. It is recommended to look there for the newest released version, as well as links to the newest builds of the docs.

At the point of the last update of this README, the latest published version could be used like this:

Add the following dependency to your Cargo manifest... rust [dependencies] wd_log = "0.1"

Example

config

rust //Set log level, default:Debug wd_log::set_level(wd_log::INFO); //Set the log output prefix, default:"wd_log" wd_log::set_prefix("WDLOG"); //Whether to display the print time, default:true wd_log::show_time(false); //Whether to display the location, default:true wd_log::show_file_line(false); //Set output to a file, default:stdout wd_log::output_to_file("./log.txt").expect("file open failed");

print

result type deal

License

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.