Logging is done with the standard Python logging module, and logging can be configured with the usual utilities. However, in the default build the debug logging is completely disabled for performance reasons [1]. To enable it, add -DSPEAD2_MAX_LOG_LEVEL=spead2::log_level::debug to the compiler options in setup.py.

[1]Logging is done from separate C threads, which have to wait for Python’s Global Interpreter Lock (GIL) in order to do logging.