Some tweaking of console logger