Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 496 Bytes

py-logging.rst

File metadata and controls

10 lines (9 loc) · 496 Bytes

Logging

Logging is done with the standard Python :pylogging module, and logging can be configured with the usual utilities. However, in the default build the debug logging is completely disabled for performance reasons1. 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.