Log refactor

Updated pull request that uses `string_copy_rev_from_commit_line`.