facedancer.filters.logging module

class facedancer.filters.logging.USBProxyPrettyPrintFilter(verbose=4, decoration='')[source]

Bases: USBProxyFilter

Filter that pretty prints USB transactions according to log levels.

__init__(verbose=4, decoration='')[source]

Sets up a new USBProxy pretty printing filter.

filter_control_in(req, data, stalled)[source]

Log IN control requests without modification.

filter_control_out(req, data)[source]

Log OUT control requests without modification.

filter_in(ep_num, data)[source]

Log IN transfers without modification.

filter_out(ep_num, data)[source]

Log OUT transfers without modification.

handle_out_request_stall(req, data, stalled)[source]

Handles cases where OUT requests are stalled (and thus we don’t get data).

timestamp()[source]

Generate a quick timestamp for printing.