macro-log 0.3.0

Use #[macro_log::debug] to log: 2023-08-11 15:52:59 - [D] - app/src/main.rs:3 -> called fn main()
Documentation
1
2
3
4
5
6
use chrono::{DateTime, Local};

pub fn get_time() -> String {
    let now: DateTime<Local> = Local::now();
    now.format("%Y-%m-%d %H:%M:%S").to_string()
}