class_docstr: WasbTaskHandler is a python log handler that handles and reads task instance logs.
  
  It extends airflow FileTaskHandler and uploads to and reads from Wasb remote storage.
code: def __init__(
      self,
      base_log_folder: str,
      wasb_log_folder: str,
      wasb_container: str,
      *,
      filename_template: str | None = None,
      **kwargs,
  ) -> None:
      super().__init__(base_log_folder, filename_template)
      self.handler: logging.FileHandler | None = None
      self.wasb_container = wasb_container
      self.remote_base = wasb_log_folder
      self.log_relative_path = ""
      self.closed = False
      self.upload_on_close = True
      self.delete_local_copy = kwargs.get(
          "delete_local_copy",
          conf.getboolean("logging", "delete_local_logs"),
      )
  
imports: from __future__ import annotations
  import os
  import shutil
  from functools import cached_property
  from pathlib import Path
  from typing import TYPE_CHECKING, Any
  from azure.core.exceptions import HttpResponseError
  from airflow.configuration import conf
  from airflow.utils.log.file_task_handler import FileTaskHandler
  from airflow.utils.log.logging_mixin import LoggingMixin
label_desc: Use image node_id 1 to create a new WasbTaskHandler object from inherited base classes: FileTaskHandler, LoggingMixin with example: obj = WasbTaskHandler(base_log_folder, wasb_log_folder, wasb_container)