How to enable logging of long lived threads and data engine queries