cute-log

Crates.iocute-log
lib.rscute-log
version2.2.0
sourcesrc
created_at2018-06-15 16:47:53.761126
updated_at2022-08-23 11:34:00.256196
descriptionSimple and cute logger for log crate
homepage
repositoryhttps://github.com/DoumanAsh/cute-log
max_upload_size
id70254
size12,205
Douman (DoumanAsh)

documentation

README

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.
Commit count: 32

cargo fmt