Moved logging setup instructions inside setup_logging()