scapy.error
Logging subsystem and basic exception class.
- class scapy.error.ScapyColoredFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)[源代码]
基类:
Formatter
A subclass of logging.Formatter that handles colors.
- levels_colored = {'CRITICAL': 'bold+white+bg_red', 'DEBUG': 'reset', 'ERROR': 'bold+red', 'INFO': 'reset', 'WARNING': 'bold+yellow'}