Crates.io | lite-log |
lib.rs | lite-log |
version | 0.1.1 |
source | src |
created_at | 2023-10-26 05:21:31.644919 |
updated_at | 2023-10-26 14:31:36.365751 |
description | A logger that prints all messages with a readable output format |
homepage | |
repository | https://github.com/mark0725/rust-lite-log |
max_upload_size | |
id | 1014103 |
size | 33,689 |
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.
use lite_log::LiteLogger;
fn main() {
LiteLogger::new().init().unwrap();
log::warn!("This is an example message.");
}
cargo run --example init
This project is licensed under the MIT license.
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.