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.
code: def __init__(
      self, enabled: bool = False, logger_name: Optional[str] = None
  ) -> None:
      self.config: dict = read_json(
          get_settings_path() / LOGGER_CONFIG_FILENAME
      )
      self.enabled: bool = enabled or self.config["enabled"]
  
      if self.enabled:
          self.logger_name: str = (
              logger_name or self.config["logger_name"]
          )
          self.log_max_size: int = self.config["logfile_max_size_kb"]
          self.log_file = self._get_log_file()
          self.log_file.writelines('"Dialog logger initiated"\n')
  
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 1 to create a new DialogLogger object  with example: obj = DialogLogger(enabled, logger_name)