def exceptions_file_path(self) -> str:
        """The file path exceptions are logged to.

        :return: The file path exceptions are logged to.
        :rtype: str
        """
        return CommonLogUtils.get_exceptions_file_path(
            self.mod_name, custom_file_path=self._custom_file_path)
Esempio n. 2
0
 def _delete_old_log_files(self, mod_identifier: Union[str, CommonModIdentity]):
     from sims4communitylib.utils.common_io_utils import CommonIOUtils
     mod_name = CommonModIdentity._get_mod_name(mod_identifier)
     files_to_delete = (
         CommonLogUtils.get_message_file_path(mod_name),
         CommonLogUtils.get_exceptions_file_path(mod_name),
         CommonLogUtils.get_old_message_file_path(mod_name),
         CommonLogUtils.get_old_exceptions_file_path(mod_name)
     )
     for file_to_delete in files_to_delete:
         # noinspection PyBroadException
         try:
             CommonIOUtils.delete_file(file_to_delete, ignore_errors=True)
         except:
             continue