parser-helper: Make parser_helper_log a function