def get_parsing_plan_log_str(obj_on_fs_to_parse, desired_type, log_only_last: bool, parser):
loc = obj_on_fs_to_parse.get_pretty_location(blank_parent_part=(log_only_last<EOL>and not GLOBAL_CONFIG.full_paths_in_logs),<EOL>compact_file_ext=True)<EOL>return '<STR_LIT>'.format(loc=loc, type=get_pretty_type_str(desired_type),<EOL>parser=str(parser))<EOL>
Utility method used by several classes to log a message indicating that a given file object is planned to be parsed
to the given object type with the given parser. It is in particular used in str(ParsingPlan), but not only.

:param obj_on_fs_to_parse:
:param desired_type:
:param log_only_last: a flag to only log the last part of the file path (default False). Note that this can be
overriden by a global configuration 'full_paths_in_logs'
:param parser:
:return: