console logger wrapper.