Ejemplo n.º 1
0
 def process_response(self, req, res, resource):
     logger.info('hellomiddleware processing response...')
Ejemplo n.º 2
0
 def process_request(self, req, res):
     logger.info('hellomiddleware processing request...')
Ejemplo n.º 3
0
 def on_get(self, req, res, name):
     logger.info("Saying hello...")
     test_function(name)
     res.body = "Hello, %s" % name
     logger.info("Said hello!")
Ejemplo n.º 4
0
 def on_get(self, req, res):
     logger.info("Saying hello as module...")
     res.body = "Hello! I'm ExampleModule."
     logger.info("Said hello as module!")
Ejemplo n.º 5
0
def test_function(name):
    logger.info("Test function")