class_docstr: Format log levels with color
docstr: Add log ansi colors
docstr_tok: ["Add","log","ansi","colors"]
code: def format(self, record):
      """Add log ansi colors"""
      crecord = copy.copy(record)
      seq = self.MAPPING.get(crecord.levelname, self.MAPPING["INFO"])
      crecord.msg = termcolor.colored(crecord.msg, **seq)
      return super().format(crecord)
  
file_path: nboost/nboost/logger.py
imports: import termcolor
  import logging
  import copy
  import os
label_desc: Use image node_id 1 for calling the ColoredFormatter obj's underlying member method code with example usage: obj.format(record) and returns: super