parameters: (app=None)
docstring: Helper to get Flask-Cor's logger, attached to the current_app's logger
      if it exists.
docstring_summary: Helper to get Flask-Cor's logger, attached to the current_app's logger
      if it exists.
docstring_tokens: Helper to get Flask - Cor s logger attached to the current_app s logger if it exists .
function: def getLogger(app=None):
      """
      Helper to get Flask-Cor's logger, attached to the current_app's logger
      if it exists.
      """
      # we are in the context of a request
      if stack.top is not None:
          return logging.getLogger("%s.cors" % current_app.logger_name)
      # For use init method, when an app is known, but there is no context
      elif app is not None:
          return logging.getLogger("%s.cors" % app.logger_name)
      else:
          return logging.getLogger("flask.ext.cors")
function_tokens: def getLogger ( app = None ) : # we are in the context of a request if stack . top is not None : return logging . getLogger ( "%s.cors" % current_app . logger_name ) # For use init method, when an app is known, but there is no context elif app is not None : return logging . getLogger ( "%s.cors" % app . logger_name ) else : return logging . getLogger ( "flask.ext.cors" )