I have an AWS Lambda which uses some modules which write to the stdout. These appear in the Lambda logs - however I need to be able to read and parse the stdout after the module is executed within the same lambda.
Is this possible with the Logger library? Note that I would like to read the log from the current execution only.
import os
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def lambda_handler(event, context):
# Do Stuff
log = logger.get_log()# read the log into a variable???