{"repo":"maxbanton/cwh","free":true,"listed":false,"github":"https://github.com/maxbanton/cwh","clone":"git clone https://github.com/maxbanton/cwh.git","description":"Amazon Web Services CloudWatch Logs Handler for Monolog library","language":"PHP","stars":425,"topics":["monolog","php","aws","cloudwatch","logs","batch","monolog-library"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"AWS CloudWatch Logs Handler for Monolog Handler for PHP logging library Monolog for sending log entries to AWS CloudWatch Logs service. Before using this library, it's recommended to get acquainted with the pricing for AWS CloudWatch services. Please press &#9733; Star button if you find this library useful. Disclaimer Logs are shipped to AWS CloudWatch Logs synchronously inside your PHP process. For very high-throughput workloads (thousands of records/sec sustained per process), consider an out-of-process pipeline — for example, logging to stdout and forwarding with the CloudWatch agent — that decouples log shipping from request latency and isolates AWS API failures from your app. For typical web and worker workloads, this handler is fine. Requirements PHP ^8.1 Monolog ^3.0 AWS account with proper permissions (see list of permissions below) Features Batches up to 10,000 events per PutLogEvents call (the AWS per-batch maximum), with automatic flush on size (1 MB), event-timespan (24 h), or buffer-full thresholds Splits oversized records ( 1 MB) into multiple events automatically Optional log-group creation with tags and retention policy Lazy log-group / log-stream initialization on first write Public flush() and reset() for long-lived workers (Symfony Messenger, Laravel queues / Octane, custom daemons) Suitable for web applications and for long-running CLI daemons and workers Installation Install the latest version with Composer by running Basic Usage Using IAM Task Roles on ","default_branch":null,"files":null,"tree":[],"storefront":"/r/maxbanton","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/maxbanton/cwh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}