error

Function error 

Source
pub fn error(s: String)
Expand description

Prints a red message in the terminal with a [ERROR] label

use log4r;
let s: String = String::from("User has logged in");
log4r::error(s);