parameters: (file=None, logger_name="output")
return_statement: return logger
docstring: Function that connects the output logger.
      This is always enabled and hardwired to
      generate logging.INFO level messages only.
      @params  file : Output file to store these messages into.
      @default None : If file is None no output file generated.
docstring_summary: Function that connects the output logger.
      This is always enabled and hardwired to
      generate logging.INFO level messages only.
docstring_tokens: Function that connects the output logger . This is always enabled and hardwired to generate logging . INFO level messages only .
function: def connectOutputLogger(file=None, logger_name="output"):
      """
      Function that connects the output logger.
      This is always enabled and hardwired to
      generate logging.INFO level messages only.
      @params  file : Output file to store these messages into.
      @default None : If file is None no output file generated.
      """
      # Create logger for logging messages
      logger = logging.getLogger(logger_name)
      #
      # Define and set the format of the logged messages
      #
      formatter = logging.Formatter("%(message)s")
      #
      # Create handlers here
      #
      std_output = logging.StreamHandler(sys.stdout)
      std_output.setFormatter(formatter)
      logger.addHandler(std_output)
      # log to a file
      if file is not None:
          file_output = logging.FileHandler(file)
          file_output.setFormatter(formatter)
          logger.addHandler(file_output)
      logger.setLevel(logging.INFO)
      return logger
function_tokens: def connectOutputLogger ( file = None , logger_name = "output" ) : # Create logger for logging messages logger = logging . getLogger ( logger_name ) # # Define and set the format of the logged messages # formatter = logging . Formatter ( "%(message)s" ) # # Create handlers here # std_output = logging . StreamHandler ( sys . stdout ) std_output . setFormatter ( formatter ) logger . addHandler ( std_output ) # log to a file if file is not None : file_output = logging . FileHandler ( file ) file_output . setFormatter ( formatter ) logger . addHandler ( file_output ) logger . setLevel ( logging . INFO ) return logger