class_docstr: DeepPavlov dialog logging facility.
  
  DialogLogger is an entity which provides tools for dialogs logging.
  
  Args:
      enabled: DialogLogger on/off flag.
      logger_name: Dialog logger name that is used for organising log files.
  
  Attributes:
      logger_name: Dialog logger name which is used for organising log files.
      log_max_size: Maximum size of log file, kb.
      self.log_file: Current log file object.
docstr: Returns opened file object for writing dialog logs.
  
  Returns:
      log_file: opened Python file object.
docstr_tok: ["Returns","opened","file","object","for","writing","dialog","logs",".","Returns",":","log_file",":","opened","Python","file","object","."]
code: def _get_log_file(self):
      """Returns opened file object for writing dialog logs.
  
      Returns:
          log_file: opened Python file object.
      """
      log_dir: Path = (
          Path(self.config["log_path"]).expanduser().resolve()
          / self.logger_name
      )
      log_dir.mkdir(parents=True, exist_ok=True)
      log_file_path = Path(
          log_dir,
          f"{self._get_timestamp_utc_str()}_{self.logger_name}.log",
      )
      log_file = open(log_file_path, "a", buffering=1, encoding="utf8")
      return log_file
  
file_path: DeepPavlov/deeppavlov/utils/connector/dialog_logger.py
imports: import json
  from datetime import datetime
  from logging import getLogger
  from pathlib import Path
  from typing import Any, Optional, Hashable
  from deeppavlov.core.common.file import read_json
  from deeppavlov.core.common.paths import get_settings_path
  from deeppavlov.core.data.utils import jsonify_data
label_desc: Use image node_id 3 for calling the DialogLogger obj's underlying member method code with example usage: obj._get_log_file() and returns: log_file