import logging


def get_handler_filename(logger):
  """Gets logger filename

  Parameters:
    * logger (object): log file object

  Returns:
    * str: Log file name if any, None if not
  
  """
  for handler in logger.handlers:
    if isinstance( handler, logging.FileHandler ):
      return handler.baseFilename
  return None