Keep a record of what your application is up to, and inspect that record to discover interesting information.
(You may also be interested in the legacy logging system if you are maintaining code written to work with older versions of Twisted.)