static error(String msg, [Exception? error=null]) { if (isErrorEnabled()) { logger.log(LogLevel.Error, msg, error); } }