Set query log