logquery: support search and log level