Expand description
This crate provides simple and cute logger.
§Features
timestamp- Enables timestamps in logs by means ofchrono. Enabled by defaultlocal_timestamp- Enablestimestampand attempts to use local time. Impliestimestamp.std- Enables use ofstdfeature to provideRUST_LOGhandling.
§Usage
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
stdavailable.
Re-exports§
pub extern crate log;
Structs§
- Logger
- Simple Logger implementation