swamp.logger.colorformat module

class ColorFormatter(fmt=None, datefmt=None, style='%')[source]

Bases: logging.Formatter

Class to format the logging messages with the appropiate color according to the logging level

colors

Dictionary with the colors corresponding with each logging level

format(record)[source]

Format a given record with the appropiate color