common_log

Function common_log 

Source
pub fn common_log<T>(data: T) -> String
where T: AsRef<str>,
Expand description

Formats log data with timestamp for each line.

§Arguments

  • AsRef<str> - The data to be logged, which will be converted to string slice.

§Returns

  • String - The formatted log string with timestamps.