ez_log: Simple logging library for Rust
Features
Ez_log can be configured using Rust features.
Default features:
color: Colored terminal output.time: Adds time for every log output. Time format can be configured by editingEZ_LOG_TIME_FORMATenv variable, using chrono format syntax.
Optional features:
dump: Creates file for every day and writes to it log output. Directory for those files can be configured by editingEZ_LOG_LOGS_DIRenv variable.
Overview
Logs are perform by log_info!, log_warn! and log_error! macros.
Usage of those macros is similar to print_ln! macro.
Example
use *;
let address = "127.0.0.1";
let port = 8000;
match start_web_server
use *;
if let Err = handle_request