Parses logs