def __init__(self,<EOL>color=True,<EOL>fmt=DEFAULT_FORMAT,<EOL>datefmt=DEFAULT_DATE_FORMAT,<EOL>colors=DEFAULT_COLORS):
logging.Formatter.__init__(self, datefmt=datefmt)<EOL>self._fmt = fmt<EOL>self._colors = {}<EOL>self._normal = '<STR_LIT>'<EOL>if color and _stderr_supports_color():<EOL><INDENT>self._colors = colors<EOL>self._normal = ForegroundColors.RESET<EOL><DEDENT>
r"""
        :arg bool color: Enables color support.
        :arg string fmt: Log message format.
          It will be applied to the attributes dict of log records. The
          text between ``%(color)s`` and ``%(end_color)s`` will be colored
          depending on the level if color support is on.
        :arg dict colors: color mappings from logging level to terminal color
          code
        :arg string datefmt: Datetime format.
          Used for formatting ``(asctime)`` placeholder in ``prefix_fmt``.
        .. versionchanged:: 3.2
           Added ``fmt`` and ``datefmt`` arguments.