search + query logger