Logging of input queries, output, and annotations.