scapy.error

Logging subsystem and basic exception class.

class scapy.error.ScapyColoredFormatter(fmt=None, datefmt=None, style='%')

Bases: logging.Formatter

A subclass of logging.Formatter that handles colors.

format(record)
levels_colored = {'CRITICAL': 'bold+white+bg_red', 'DEBUG': 'reset', 'ERROR': 'bold+red', 'INFO': 'reset', 'WARNING': 'bold+yellow'}
class scapy.error.ScapyFreqFilter

Bases: logging.Filter

filter(record)
exception scapy.error.ScapyInvalidPlatformException

Bases: scapy.error.Scapy_Exception

exception scapy.error.ScapyNoDstMacException

Bases: scapy.error.Scapy_Exception

exception scapy.error.Scapy_Exception

Bases: Exception

scapy.error.warning(x, *args, **kargs)

Prints a warning during runtime.