Skip to main content

Simple and visually consistent logger for AWS Lambda

Project description

Lambo

pytest coverage maintainability

Simple and visually pleasing logger for AWS Lambda.

Installation

pip install lambo

Usage

import lambo

logger = lambo.getLogger(__name__)
logger.info('COLD START, NO REQUEST ID')


@logger.attach()
def handler(event, context):
    logger.info('HELLO!')
    return {'ok': True}

Yields…

INFO - COLD START, NO REQUEST ID
INFO RequestId: …  EVENT {"fizz": "buzz"}
INFO RequestId: …  TEST
INFO RequestId: …  RETURN {"ok": true}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lambo-0.1.1.tar.gz (14.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page