lite-log

Crates.iolite-log
lib.rslite-log
version0.1.1
sourcesrc
created_at2023-10-26 05:21:31.644919
updated_at2023-10-26 14:31:36.365751
descriptionA logger that prints all messages with a readable output format
homepage
repositoryhttps://github.com/mark0725/rust-lite-log
max_upload_size
id1014103
size33,689
mark (mark0725)

documentation

README

lite-log

A logger that prints all messages with a readable output format.

Latest version All downloads Downloads of latest version MIT License Github Tags Github Issues

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.

Commit count: 7

cargo fmt