class_docstr: Logger class
class_docstr_tok: ["Logger","class"]
docstr: Initialize the logger
docstr_tok: ["Initialize","the","logger"]
code: def __init__(self, save_logs: bool = True, verbose: bool = False):
      """Initialize the logger"""
      self._logs = []
      self._verbose = verbose
      self._last_time = time.time()
  
      if save_logs:
          try:
              filaname = find_closest("pandasai.log")
          except ValueError:
              filaname = "pandasai.log"
          handlers = [logging.FileHandler(filaname)]
      else:
          handlers = []
  
      if verbose:
          handlers.append(logging.StreamHandler(sys.stdout))
  
      logging.basicConfig(
          level=logging.INFO,
          format="%(asctime)s [%(levelname)s] %(message)s",
          datefmt="%Y-%m-%d %H:%M:%S",
          handlers=handlers,
      )
      self._logger = logging.getLogger(__name__)
  
file_path: pandas-ai/pandasai/helpers/logger.py
imports: import inspect
  import time
  import sys
  from typing import List
  import logging
  from .path import find_closest
  from pydantic import BaseModel
label_desc: Use image node_id 1 to create a new Logger object  with example: obj = Logger(save_logs, verbose)