[][src]Crate cute_log

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

fn main() {
    cute_log::init();
    log::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

Logger

Simple Logger implementation

Functions

debug_init

Sets global logger as init only in debug mode.

debug_init_with_max_level

Sets global logger as init_with_max_level only in debug mode.

init

Sets global logger with log level Trace

init_with_max_level

Sets logger with max log level.