[Fixes #18] Added support for logging search queries.