plog
A pretty logger written for Rust programs.
A library to log applications just using macros, includes initially five levels: debug!
, info
, ok
, warn
and error
, each one distributed as a macro:
use ;
use ;
features
Due to the focus on optimization, every functionality from the lib (except log macros) is offered by features. Plog contains the following features:
feature | description | additional dependence | why |
---|---|---|---|
datetime |
Include date and time on the log, formatted as %Y-%M-%D %HH:%MM:%SS |
chrono |
To format system time |
persistent |
Add a persistent log handled by LOG_FILEPATH environment variable, saving each log on the pointed file |
parking_lot |
const_mutex for stable Rust and optimizations |
context |
Include the line and file that has required the log | none except std::line! and std::file! |
To get information about in compile-time |