log4j code in main