PHPackages                             aporat/laravel-cloudwatch-logger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. aporat/laravel-cloudwatch-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

aporat/laravel-cloudwatch-logger
================================

A Laravel logging driver for AWS CloudWatch Logs integration

v2.0.0(8mo ago)34.9k↑60%MITPHPPHP ^8.4CI passing

Since Feb 6Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/aporat/laravel-cloudwatch-logger)[ Packagist](https://packagist.org/packages/aporat/laravel-cloudwatch-logger)[ Docs](https://github.com/aporat/laravel-cloudwatch-logger)[ GitHub Sponsors](https://github.com/aporat)[ RSS](/packages/aporat-laravel-cloudwatch-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (8)Versions (6)Used By (0)

Laravel CloudWatch Logger
=========================

[](#laravel-cloudwatch-logger)

[![Latest Stable Version](https://camo.githubusercontent.com/2e38411e624e749a524bb3f3c4f502779392885b3265b1e373f5153262165199/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61706f7261742f6c61726176656c2d636c6f756477617463682d6c6f676765722e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f6d706f736572)](https://packagist.org/packages/aporat/laravel-cloudwatch-logger)[![Downloads](https://camo.githubusercontent.com/af1be18da4b8e99e1a7bd916e064c9ca2908f7cb03853b79519ea33177001294/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61706f7261742f6c61726176656c2d636c6f756477617463682d6c6f676765722e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f6d706f736572)](https://packagist.org/packages/aporat/laravel-cloudwatch-logger)[![Codecov](https://camo.githubusercontent.com/7c06efe268c0ae56a96c55d30a4ff6756084f8fe9cd5e85d81ae33a1cd5f2761/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f61706f7261742f6c61726176656c2d636c6f756477617463682d6c6f676765723f7374796c653d666c61742d737175617265)](https://codecov.io/github/aporat/laravel-cloudwatch-logger)[![Laravel Version](https://camo.githubusercontent.com/2de24cdf889694b542b8b1347fa6bb55ad1e52392a3105c9596e318064a6f8b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31322e7825323025374325323031332e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://laravel.com)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/6efb1eba525d5b63e13dd952f01e460bc004d1040b280bde5232be5281e7ed88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61706f7261742f6c61726176656c2d636c6f756477617463682d6c6f676765722f63692e796d6c3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/6efb1eba525d5b63e13dd952f01e460bc004d1040b280bde5232be5281e7ed88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61706f7261742f6c61726176656c2d636c6f756477617463682d6c6f676765722f63692e796d6c3f7374796c653d666c61742d737175617265)[![License](https://camo.githubusercontent.com/7c86195334d440d1be4ad1962fdc4898a182e5dae1641e43dddd87ef77358890/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61706f7261742f6c61726176656c2d636c6f756477617463682d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A Laravel logging driver for seamless integration with AWS CloudWatch Logs.

Features
--------

[](#features)

- Custom Monolog channel for sending logs to CloudWatch.
- Configurable AWS credentials, log group, stream, retention, and batch size.
- Supports string-based, class-based, and callable custom log formatters.
- Fully compatible with Laravel's `Log` facade and channel system.
- Simple, environment-based setup with a dedicated configuration file.

Requirements
------------

[](#requirements)

- **PHP**: `^8.4`
- **Laravel**: `^12.0` || `^13.0`
- **AWS SDK**: Provided via `phpnexus/cwh`

Installation
------------

[](#installation)

1. Require the package via Composer:

    ```
    composer require aporat/laravel-cloudwatch-logger
    ```
2. Publish the configuration file:

    ```
    php artisan vendor:publish --provider="Aporat\CloudWatchLogger\CloudWatchLoggerServiceProvider" --tag="config"
    ```

    This will create a `config/cloudwatch-logger.php` file in your application.

Configuration
-------------

[](#configuration)

### Step 1: Add the CloudWatch Channel

[](#step-1-add-the-cloudwatch-channel)

Add the following channel definition to your `config/logging.php` file's `channels` array. This will use the configuration file you published in the previous step.

```
'channels' => [
    // ... other channels

    'cloudwatch' => require config_path('cloudwatch-logger.php'),
],
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance77

Regular maintenance activity

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~74 days

Total

4

Last Release

242d ago

Major Versions

v1.1.0 → v2.0.02025-09-18

PHP version history (3 changes)v1.0.0PHP ^8.2

v1.1.0PHP ^8.3

v2.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/54592564aa6e76cb00fdb16a8b7fadaea333de11da7fd8a739fe4812237a551c?d=identicon)[aporat](/maintainers/aporat)

---

Top Contributors

[![aporat](https://avatars.githubusercontent.com/u/415576?v=4)](https://github.com/aporat "aporat (48 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (4 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (2 commits)")

---

Tags

laravelloggingawsloggermonologcloudwatch

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aporat-laravel-cloudwatch-logger/health.svg)

```
[![Health](https://phpackages.com/badges/aporat-laravel-cloudwatch-logger/health.svg)](https://phpackages.com/packages/aporat-laravel-cloudwatch-logger)
```

###  Alternatives

[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10619.4k](/packages/naoray-laravel-github-monolog)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
