Work on settings up logging