Programatically setup a console logger.