Implemented getlog, which automatically gets all logs and merges into
one local file.