Skip to content

archaeo_super_prompt.config.debug_log

source module archaeo_super_prompt.config.debug_log

Logging management module.

Classes

  • ColorFormatter Initialize the formatter with specified format strings.

Functions

source class ColorFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)

Bases : logging.Formatter

Initialize the formatter with specified format strings.

Initialize the formatter either with the specified format string, or a default as described above. Allow for specialized date formatting with the optional datefmt argument. If datefmt is omitted, you get an ISO8601-like (or RFC 3339-like) format.

Use a style parameter of '%', '{' or '$' to specify that you want to use one of %-formatting, :meth:str.format ({}) formatting or :class:string.Template formatting in your format string.

.. versionchanged:: 3.2 Added the style parameter.

Methods

source method ColorFormatter.format(record)

source set_debug_mode(debug_mode: bool)

source print_log(msg: str)

source print_warning(msg: str)

source forward_warning(error: Exception)

source print_debug_log(msg: str)