Function error

Source
pub fn error(now: &str, message: &str)
Expand description

ยงError

Outputs an error message via log_error! macros. You can also use just an error method instead, but it requires you to define any variable as &str

E.g:

use logger_rust::error;
use logger_rust::current_time;
error(&current_time(), "An error message");