Crate cute_log

source ·
Expand description

This crate provides simple and cute logger.

Feautres

  • timestamp - Enables timestamps in logs by means of chrono. Enabled by default
  • color - Enables coloring of log level. Enabled by default.

Usage

#[macro_use]
extern crate log;
extern crate cute_log;

fn main() {
    cute_log::init();
    info!("it works!");
}

Log level control

The logger is made without any builtin filters.

You can either control logs through compile time features of log crate. Or use set_max_level.

Structs

Simple Logger implementation

Functions

Sets global logger with log level Trace
Sets logger with max log level.