class_docstr: Early logger which captures logs in memory until logging can be configured.
class_docstr_tok: ["Early","logger","which","captures","logs","in","memory","until","logging","can","be","configured","."]
code: def _flush(self) -> None:
      assert self is not logger
      assert logger is not None
      for level, msg, args, kwargs in self._log:
          logger.log(level, msg, *args, **kwargs)
      for msg, args, kwargs in self._exception:
          logger.exception(msg, *args, **kwargs)
  
imports: import logging
  import os
  import sys
  import threading
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  import wandb
  from .None import wandb_manager, wandb_settings
  from .lib import config_util, server, tracelog
label_desc: Use image node_id 9 for calling the _EarlyLogger obj's underlying member method code with example usage: obj._flush() without return types