You can choose to activate a database trace. The database trace logs all reactions of the kernel to database statements.
See also:
Concepts of the Database System, Traces