{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/5"}],"enrichment":{"capability":"A Python logging handler that sends log events to AWS CloudWatch, integrating with Python's standard logging module to route messages to CloudWatch log groups and streams.","skillfed_tags":["aws-integration","logging-handler"],"use_cases":["Send logs from on-premises or non-AWS servers to CloudWatch for centralized monitoring and analysis.","Separate application logs from infrastructure logs in Lambda or ECS by explicitly routing to a custom log group.","Integrate CloudWatch logging into an existing Python codebase with minimal changes to logging setup code.","Handle large log messages by automatically truncating or splitting them to fit CloudWatch's 256 KB event limit.","Use custom AWS credentials for logging when the default environment credentials are not suitable."],"what_it_does":"This package provides a lightweight Python logging handler that routes log messages to AWS CloudWatch. It wraps boto3 to integrate with Python's standard logging module, so you can add it as a handler to an existing logger without rewriting your logging code. The handler supports custom AWS credentials and regions, automatic log group and stream creation, and three strategies for handling oversized messages (error, truncate, or split) since CloudWatch has a 256 KB event size limit.\n\nIt is designed for scenarios where you want to centralize logs from infrastructure outside AWS (dedicated servers, on-premises systems) or where you want to separate logs from AWS-managed services like Lambda or ECS that already log automatically. You configure it once at logger creation time, then use Python's standard logging calls as usual.","worth_installing":"Yes, if you need to send Python logs to CloudWatch from non-AWS infrastructure or want explicit control over log routing. The package is stable, has no vulnerabilities, and integrates cleanly with Python's logging module. However, note that maintenance is dormant (last commit 2023-11-09); if you require active support or compatibility with future boto3 versions, verify that it still works in your environment before committing to it."},"id":"cloudwatch","links":{"html":"https://skillfed.io/packages/cloudwatch","md":"https://skillfed.io/packages/cloudwatch.md","pypi":"https://pypi.org/project/cloudwatch/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-09-01","license_spdx":null,"license_treatment":"permissive","name":"cloudwatch","python_support":"supports_current","summary":"A small handler for AWS Cloudwatch"},"popularity":{"monthly_downloads":534281,"position":6135,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.1"}
