Adds query printer for one-line log print.