cli_color_log

Crates.iocli_color_log
lib.rscli_color_log
version0.1.1
sourcesrc
created_at2020-02-08 16:20:30.782914
updated_at2020-02-09 01:54:44.755444
descriptionA convenient color log tool for cli.
homepagehttps://github.com/zhangkefei/cli_color_log.git
repositoryhttps://github.com/zhangkefei/cli_color_log.git
max_upload_size
id206392
size10,632
themis (zhangkefei)

documentation

https://docs.rs/cli_color_log/0.1.1/cli_color_log/

README

cli_color_log

A convenient color log tool for cli.

usage

use cli_color_log::Logger;
use cli_color_log::LogType;

fn main() {
    let logger = Logger::new(12);
    logger.info("This is a info message.");
    logger.warn("This is a warning message.");
    logger.error("This is a error message.");
    logger.style_log(LogType::Info, "Download", "This is a custom style message.");
    logger.style_log(LogType::Plain, "Console", "This is a plain style message.");
    logger.log("This is a plain log message.");
}
Commit count: 3

cargo fmt