[Python] Python logging CloudWatch location?

Discussão em 'Python' iniciado por Stack, Julho 12, 2025.

  1. Stack

    Stack Membro Participativo

    I have a Lambda function, which I've declared with CDK. Additionally, I've declared cloud watch logs and passed the resource to the Lambda function as an environment variable "LOGS_DESTINATION".

    The location can be retrieved by os.environ['LOGS_DESTINATION'] by Python Lambda.

    In Python, using the logging module, how I can configure/direct logging.info statements to cloudwatch logs using the above location (which is a string)?

    Continue reading...

Compartilhe esta Página