Implement getlog/getoutput commands. CAF-242