I am working on a log4j 1 to log4j 2 migration. Inside a AppConfigInitializer file we use something like this -
BasicConfigurator.configure(consoleAppender); >
Configurator.initialize(new DefaultConfiguration());