import logging


def get_handler_stream(logger):
  """ Gets log handler stream
  
  Parameters:
    * logger (object): log file object

  Returns:
      * str: where log info streams to if log handler exist, 
      returns None if handler level is not set
  """
  for handler in logger.handlers:
    if isinstance( handler, logging.StreamHandler ) and handler.level != logging.NOTSET:
      return handler.stream
    elif isinstance( handler, logging.FileHandler ) and handler.level != logging.NOTSET:
      return handler.stream
  return None