error statuslogger log4j2 could not find a logging implementation.Please add log4j-core to the classpath using simpleLogger to log to console sonar code example
Example: error statuslogger log4j2 could not find a logging implementation
System.setProperty("log4j.configurationFile","./path_to_the_log4j2_config_file/log4j2.xml");
Logger log = LogManager.getLogger(LogExample.class.getName());