#log

cute-log

Simple and cute logger for log crate

11 stable releases

new 2.0.0 Oct 17, 2020
1.4.1 Jan 4, 2020
1.3.0 Aug 6, 2019
1.2.1 Jun 21, 2019
1.1.1 Jun 15, 2018

#96 in Debugging

Download history 5/week @ 2020-06-26 25/week @ 2020-07-03 25/week @ 2020-07-10 3/week @ 2020-07-17 5/week @ 2020-07-24 3/week @ 2020-07-31 28/week @ 2020-08-07 18/week @ 2020-08-14 22/week @ 2020-08-21 25/week @ 2020-08-28 56/week @ 2020-09-04 11/week @ 2020-09-11 12/week @ 2020-09-18 16/week @ 2020-09-25 32/week @ 2020-10-02 17/week @ 2020-10-09

82 downloads per month
Used in zip-extract

Apache-2.0

13KB
280 lines

cute-log

Build Status Crates.io Documentation

Simple and cute log

Usage

fn main() {
    const LOGGER: cute_log::Logger = cute_log::Logger::new();
    LOGGER.set_max_level(cute_log::log::LevelFilter::Info);
    let _ = LOGGER.set_logger();
    log::info!("it works!");
}

Available features

  • timestamp - Enables timestamp in logs. Enabled by default.

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.

Supported platforms

  • Android - via NDK logging library, therefore it must be linked.
  • Wasm - via web console API.
  • Any other platform with std available.

lib.rs:

This crate provides simple and cute logger.

Features

  • timestamp - Enables timestamps in logs by means of chrono. Enabled by default

Usage

fn main() {
    const LOGGER: cute_log::Logger = cute_log::Logger::new();
    LOGGER.set_max_level(cute_log::log::LevelFilter::Info);
    let _ = LOGGER.set_logger();
    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 from the log crate.

Supported platforms

  • Android - via NDK logging library, therefore it must be linked.
  • Wasm - via web console API.
  • Any other platform with std available.

Dependencies

~62–680KB
~14K SLoC