class_docstr: Mixin to add a disk logging handler to a repository. It has a cache_folder.
class_docstr_tok: ["Mixin","to","add","a","disk","logging","handler","to","a","repository",".","It","has","a","cache_folder","."]
code: def get_log_from_logging_handler(
      self, logger: NeuraxleLogger, scope: ScopedLocation
  ) -> str:
      logging_file = self._create_scoped_logger_path(scope)
      logger.with_file_handler(logging_file)
      return "".join(logger.read_log_file())
  
imports: import json
  import os
  import shutil
  from copy import deepcopy
  from typing import List, Optional
  from neuraxle.logging.logging import NeuraxleLogger
  from neuraxle.metaopt.data.vanilla import BaseDataclass, DataclassHasListMixin, RootDataclass, ScopedLocation, SubDataclassT, dataclass_2_id_attr, from_json, to_json
  from neuraxle.metaopt.repositories.repo import HyperparamsRepository
label_desc: Use image node_id 3 for calling the _OnDiskRepositoryLoggerHandlerMixin obj's underlying member method code with example usage: obj.get_log_from_logging_handler(logger, scope) and returns: str