Metadata-Version: 1.1
Name: aws_lambda_logging
Version: 0.0.19
Summary: Nanolib to enhance logging in aws lambda
Home-page: https://gitlab.com/hadrien/aws_lambda_logging
Author: UNKNOWN
Author-email: UNKNOWN
License: MIT
Description: ==================
        AWS Lambda Logging
        ==================
        
        .. image:: https://gitlab.com/hadrien/aws_lambda_logging/badges/master/build.svg
        
        .. image:: https://gitlab.com/hadrien/aws_lambda_logging/badges/master/coverage.svg?job=Run%20py.test
        
        Better logging for aws lambda running on python runtime environment with a
        highly opinionated json formatting to ease parsing on any logging system.
        
        Usage
        =====
        
        .. code::
        
            import aws_lambda_logging
        
        
            def handler(event, context):
                aws_lambda_logging.setup(level='DEBUG')
                ...
        
        You can add keyword arguments to be logged each time, such as lambda request
        id.
        
        .. code::
        
            import aws_lambda_logging
        
        
            def handler(event, context):
                aws_lambda_logging.setup(level='DEBUG',
                                         aws_request_id=context.get('aws_request_id'))
                log.debug('Just a try!')
                ...
        
        
        It will output json formatted message:
        
        .. code::
        
            {
                "level": "DEBUG",
                "timestamp": "2016-10-03 13:27:57,438",
                "apigw_request_id": "323fee86-896d-11e6-b7fd-2d914ea80962",
                "location": "root.handler:6",
                "message": "Just a try!"
            }
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
