Added printing of logger to console.