Adding maven dependency 'log4j:log4j:1.2.17' and a basic configuration.