class_docstr: FileTaskHandler is a python log handler that handles and reads task instance logs.
  
  It creates and delegates log handling to `logging.FileHandler` after receiving task
  instance context.  It reads logs from task instance's host machine.
  
  :param base_log_folder: Base log folder to place logs.
  :param filename_template: template filename string
class_docstr_tok: ["FileTaskHandler","is","a","python","log","handler","that","handles","and","reads","task","instance","logs",".","It","creates","and","delegates","log","handling","to","`","logging.FileHandler","`","after","receiving","task","instance","context",".","It","reads","logs","from","task","instance","'s","host","machine",".",":","param","base_log_folder",":","Base","log","folder","to","place","logs",".",":","param","filename_template",":","template","filename","string"]
docstr: This cached property avoids loading executor repeatedly.
docstr_tok: ["This","cached","property","avoids","loading","executor","repeatedly","."]
code: def _executor_get_task_log(
      self,
  ) -> Callable[[TaskInstance, int], tuple[list[str], list[str]]]:
      """This cached property avoids loading executor repeatedly."""
      executor = ExecutorLoader.get_default_executor()
      return executor.get_task_log
  
imports: from __future__ import annotations
  import inspect
  import logging
  import os
  import warnings
  from contextlib import suppress
  from enum import Enum
  from functools import cached_property
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Callable, Iterable
  from urllib.parse import urljoin
  import pendulum
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException, RemovedInAirflow3Warning
  from airflow.executors.executor_loader import ExecutorLoader
  from airflow.utils.context import Context
  from airflow.utils.helpers import parse_template_string, render_template_to_string
  from airflow.utils.log.logging_mixin import SetContextPropagate
  from airflow.utils.log.non_caching_file_handler import NonCachingFileHandler
  from airflow.utils.session import create_session
  from airflow.utils.state import State, TaskInstanceState
label_desc: Use image node_id 10 for calling the FileTaskHandler obj's underlying member method code with example usage: obj._executor_get_task_log() and returns: executor