[−][src]Crate cute_log
This crate provides simple and cute logger.
Feautres
timestamp
- Enables timestamps in logs by means ofchrono
. Enabled by defaultcolor
- Enables coloring of log level. Enabled by default.
Usage
fn main() { cute_log::init(); 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
std
available.
Re-exports
pub extern crate log; |
Structs
Logger | Simple Logger implementation |
Functions
debug_init | Sets global logger as init only in debug mode. |
debug_init_with_max_level | Sets global logger as init_with_max_level only in debug mode. |
init | Sets global logger with log level Trace |
init_with_max_level | Sets logger with max log level. |