def inject_arca(self, arca):
        """ Apart from the usual validation stuff it also creates log file for this instance.
        """
        super().inject_arca(arca)

        import vagrant

        self.log_path = Path(self._arca.base_dir) / "logs" / (str(uuid4()) + ".log")
        self.log_path.parent.mkdir(exist_ok=True, parents=True)
        logger.info("Storing vagrant log in %s", self.log_path)

        self.log_cm = vagrant.make_file_cm(self.log_path)
def inject_arca ( self , arca ) : super ( ) . inject_arca ( arca ) import vagrant self . log_path = Path ( self . _arca . base_dir ) / "logs" / ( str ( uuid4 ( ) ) + ".log" ) self . log_path . parent . mkdir ( exist_ok = True , parents = True ) logger . info ( "Storing vagrant log in %s" , self . log_path ) self . log_cm = vagrant . make_file_cm ( self . log_path )
Apart from the usual validation stuff it also creates log file for this instance.