code: def __init__(self, formats=None):
      super().__init__()
      formats = formats or self.DEFAULT_FORMATS
      self._formatters = {
          level: Formatter(fmt) for level, fmt in formats.items()
      }
  
imports: import logging
  import logging.config
  import os
  import sys
  from guild import ansi_util
label_desc: Use image node_id 1 to create a new ConsoleLogHandler object from inherited base classes: logging with example: obj = ConsoleLogHandler(formats)