How to use the mlpm.config.GetLogDir function in mlpm

To help you get started, we’ve selected a few mlpm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github autoai-org / AID / components / mlserve / mlpm / traceableThread.py View on Github external
def start(self):
        if self.id is None:
            self.id = str(uuid.uuid4)
        full_log_path = os.path.join(GetLogDir(), self.id + ".full.log")
        self.__run_backup = self.run
        self.run = self.__run
        sys.stdout = ThreadPrinter(full_log_path)
        threading.Thread.start(self)