class_docstr: Log events to a file in json format.
  
  There will be one event per line and each event is stored as json.
class_docstr_tok: ["Log","events","to","a","file","in","json","format",".","There","will","be","one","event","per","line","and","each","event","is","stored","as","json","."]
docstr: Instantiate the file logger.
docstr_tok: ["Instantiate","the","file","logger","."]
code: def _event_logger(self) -> logging.Logger:
      """Instantiate the file logger."""
      logger_file = self.path
      # noinspection PyTypeChecker
      query_logger = logging.getLogger("event-logger")
      query_logger.setLevel(logging.INFO)
      handler = logging.FileHandler(logger_file)
      handler.setFormatter(logging.Formatter("%(message)s"))
      query_logger.propagate = False
      query_logger.addHandler(handler)
  
      logger.info(f"Logging events to '{logger_file}'.")
  
      return query_logger
  
file_path: rasa/rasa/core/brokers/file.py
imports: import json
  import logging
  import typing
  from asyncio import AbstractEventLoop
  from typing import Optional, Text, Dict
  from rasa.core.brokers.broker import EventBroker
label_desc: Use image node_id 2 for calling the FileEventBroker obj's underlying member method code with example usage: obj._event_logger() and returns: query_logger