I am working on a log4j 1 to log4j 2 migration. Inside a AppConfigInitializer file we use something like this -
BasicConfigurator.configure(consoleAppender); >
The solution above works, but since default log level is ERROR, not all logs are shown. Log level can be adjusted with Configurator.setRootLevel method:
Configurator.initialize(new DefaultConfiguration()); Configurator.setRootLevel(Level.INFO);