Changed logger in sample code to log4j