Some documentation on query logging.