adding a console logger