Log SQL execution time and SQL statement