Saasli / saasli-backend

Documentation
https://saasli.github.io/docs/
0 stars 0 forks source link

[Logging] Introduce Python logs throughout api #39

Open godd9170 opened 7 years ago

godd9170 commented 7 years ago

Lambda plays real nice with python logging: http://docs.aws.amazon.com/lambda/latest/dg/python-logging.html

When relevant, we should stick logs for each of debugging going forward

import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
logger.info('got event{}'.format(event))
logger.error('something went wrong')