#log

cute-log

Simple and cute logger for log crate

22 stable releases

2.2.0 Aug 23, 2022
2.1.4 Jul 13, 2022
2.0.7 Apr 6, 2021
2.0.5 Feb 18, 2021
1.1.1 Jun 15, 2018

#86 in Debugging

Download history 148/week @ 2022-06-02 13/week @ 2022-06-09 18/week @ 2022-06-16 28/week @ 2022-06-23 53/week @ 2022-06-30 217/week @ 2022-07-07 140/week @ 2022-07-14 293/week @ 2022-07-21 65/week @ 2022-07-28 62/week @ 2022-08-04 41/week @ 2022-08-11 64/week @ 2022-08-18 76/week @ 2022-08-25 31/week @ 2022-09-01 111/week @ 2022-09-08 23/week @ 2022-09-15

251 downloads per month
Used in zip-extract

Apache-2.0

11KB
178 lines

cute-log

Rust 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.
  • std - Enables use of std feature to provide RUST_LOG handling.

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.

Dependencies

~49–390KB