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