示例#1
0
文件: app.py 项目: lozadaOmr/sling
 def process_response(self, req, res, resource):
     logger.info('hellomiddleware processing response...')
示例#2
0
文件: app.py 项目: lozadaOmr/sling
 def process_request(self, req, res):
     logger.info('hellomiddleware processing request...')
示例#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!")
示例#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!")
示例#5
0
def test_function(name):
    logger.info("Test function")