def init_logging(self):
        log_file = os.path.abspath(os.path.expanduser(self.config.get('log_file')))
        # Create the log file if it does not yet exist
        with open(log_file, 'a+'):
            pass
        logging.basicConfig(filename=log_file,
                format='%(levelname)s:%(asctime)s %(message)s',
                level=logging.INFO)
        return log_file
Validate that the logging_directory path is valid.
dataset/ETHPy150Open washingtonpost/whippersnapper/whippersnapper/whippersnapper.py/WhipperSnapper.init_logging--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/forms.py/LoggingSettingsForm.clean_logging_directory