2 releases
0.1.1 | Oct 26, 2023 |
---|---|
0.1.0 | Oct 26, 2023 |
#9 in #rfc-3339
22KB
278 lines
lite-log
A logger that prints all messages with a readable output format.
Forked from rust-simple_logger, and changed lib time to chrono.
The output format is based on the format used by Supervisord, with timestamps default RFC 3339 format. The format used for timestamps can be customised.
Usage
use lite_log::LiteLogger;
fn main() {
LiteLogger::new().init().unwrap();
log::warn!("This is an example message.");
}
run example
cargo run --example init
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in lite-log by you, shall be licensed as MIT, without any additional terms or conditions.
Dependencies
~0–10MB
~47K SLoC