But this will not log to Cloud Watch when test on the cloud.
AWS Lambda Python runtime has pre-configured log handlers. To log to Cloud Watch:
logger = logging.getLogger()
But this will not log to local Python interpreter when test locally.
# If there is no pre-configured log handler, we set basicConfig