Esempio n. 1
0
File: app.py Progetto: slinghq/sling
 def process_response(self, req, res, resource):
     logger.info('hellomiddleware processing response...')
Esempio n. 2
0
File: app.py Progetto: slinghq/sling
 def process_request(self, req, res):
     logger.info('hellomiddleware processing request...')
Esempio 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!')
Esempio 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!')
Esempio n. 5
0
def test_function(name):
    logger.info('Test function')