def user_log_dir(self) -> str:
        """
        :return: log directory tied to the user, same as `user_state_dir` if not opinionated else ``log`` in it
        """
        path = self.user_state_dir
        if self.opinion:
            path = os.path.join(path, "log")
        return path

        :return: log directory tied to the user, same as `user_state_dir` if not opinionated else ``log`` in it
        
product/runtime/src/main/python/pkg_resources/_vendor/platformdirs/unix.py