Support to display the MongoDB query to the log