set up logging with basicConfig