def _create_parsing_plan(self, desired_type: Type[T], filesystem_object: PersistedObject, logger: Logger,<EOL>log_only_last: bool = False):
logger.debug('<STR_LIT>' + get_parsing_plan_log_str(filesystem_object, desired_type,<EOL>log_only_last=log_only_last, parser=self))<EOL>return AnyParser._RecursiveParsingPlan(desired_type, filesystem_object, self, logger)<EOL>
Adds a log message and creates a recursive parsing plan.

:param desired_type:
:param filesystem_object:
:param logger:
:param log_only_last: a flag to only log the last part of the file path (default False)
:return: