macro_rules! error { ($($arg:tt)*) => { ... }; }
Macro to log error message. First lock the logger in static, then log the message.