code: def logging_file_to_df(logging_file_path: str) -> pd.DataFrame:
      """Parse the logged messages into a dataframe.
  
      Parameters
      ----------
      logging_file_path: str
          The file path where the logged messages are stored.
  
      Returns
      -------
      pd.DataFrame
          A DataFrame containing the log_time, name, log_level and log message.
  
      """
      column_names = ["log_time", "name", "log_level", "message"]
      data = {col: [] for col in column_names}
      with open(logging_file_path, "r") as f:
          for line in f:
              line = line.split(" - ")
              for idx, col in enumerate(column_names):
                  data[col].append(line[idx].strip())
      df = pd.DataFrame(data)
      df["log_time"] = pd.to_datetime(df["log_time"])
      return df
  
file_path: tsflex/tsflex/utils/logging.py
imports: import logging
  import warnings
  from pathlib import Path
  from typing import Union
  import pandas
label_desc: Use image node_id 4 for calling a global function with example usage: logging_file_to_df(logging_file_path) and returns: df