Addition of logger instead of system.out