Crates.io | cute-log |
lib.rs | cute-log |
version | 2.2.0 |
source | src |
created_at | 2018-06-15 16:47:53.761126 |
updated_at | 2022-08-23 11:34:00.256196 |
description | Simple and cute logger for log crate |
homepage | |
repository | https://github.com/DoumanAsh/cute-log |
max_upload_size | |
id | 70254 |
size | 12,205 |
Simple and cute log
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!");
}
timestamp
- Enables timestamp in logs. Enabled by default.std
- Enables use of std
feature to provide RUST_LOG
handling.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
.
std
available.