P6Spy is a framework that intercepts and logs database SQL statements for performance monitoring and debugging.