log_path: path of log file, None
(self, log_path: Union[str, None, MetaChainLogger] = None)
| 95 | |
| 96 | class MetaChain: |
| 97 | def __init__(self, log_path: Union[str, None, MetaChainLogger] = None): |
| 98 | """ |
| 99 | log_path: path of log file, None |
| 100 | """ |
| 101 | if logger: |
| 102 | self.logger = logger |
| 103 | elif isinstance(log_path, MetaChainLogger): |
| 104 | self.logger = log_path |
| 105 | else: |
| 106 | self.logger = MetaChainLogger(log_path=log_path) |
| 107 | # if self.logger.log_path is None: self.logger.info("[Warning] Not specific log path, so log will not be saved", "...", title="Log Path", color="light_cyan3") |
| 108 | # else: self.logger.info("Log file is saved to", self.logger.log_path, "...", title="Log Path", color="light_cyan3") |
| 109 | # @retry( |
| 110 | # stop=stop_after_attempt(4), |
| 111 | # wait=wait_exponential(multiplier=1, min=4, max=60), |
nothing calls this directly
no test coverage detected