#logging #control #info

no-std 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

#434 in Debugging

22 downloads per month
Used in zip-extract

Apache-2.0

12KB
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

~46–475KB