import logging


def has_file_handlers(logger):
  """To check if a log file has a file handler

  Parameters:
    * logger (object): Logger file object
  
  Returns:
    * bool: True if logger is a file handler logger
  """

  for handler in logger.handlers:
    if isinstance( handler, logging.FileHandler ):
      return True
  return False