class_docstr: Task log reader.
class_docstr_tok: ["Task","log","reader","."]
docstr: Render the log attachment filename.
  
  :param ti: The task instance
  :param try_number: The task try number
docstr_tok: ["Render","the","log","attachment","filename",".",":","param","ti",":","The","task","instance",":","param","try_number",":","The","task","try","number"]
code: def render_log_filename(
      self,
      ti: TaskInstance,
      try_number: int | None = None,
      *,
      session: Session = NEW_SESSION,
  ) -> str:
      """
      Render the log attachment filename.
  
      :param ti: The task instance
      :param try_number: The task try number
      """
      dagrun = ti.get_dagrun(session=session)
      attachment_filename = render_log_filename(
          ti=ti,
          try_number="all" if try_number is None else try_number,
          filename_template=dagrun.get_log_template(
              session=session
          ).filename,
      )
      return attachment_filename
  
file_path: airflow/airflow/utils/log/log_reader.py
imports: from __future__ import annotations
  import logging
  import time
  from functools import cached_property
  from typing import TYPE_CHECKING, Iterator
  from airflow.configuration import conf
  from airflow.utils.helpers import render_log_filename
  from airflow.utils.log.logging_mixin import ExternalLoggingMixin
  from airflow.utils.session import NEW_SESSION, provide_session
  from airflow.utils.state import TaskInstanceState
label_desc: Use image node_id 6 for calling the TaskLogReader obj's underlying member method code with example usage: obj.render_log_filename(ti, try_number) and returns: attachment_filename