PHPackages                             plumthedev/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. plumthedev/laravel-cloudwatch-logger

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

plumthedev/laravel-cloudwatch-logger
====================================

Laravel Cloudwatch Logger is a Laravel package providing seamless integration with AWS CloudWatch for logging.

v1.0.0(2y ago)3668MITPHPPHP ^8.1

Since Mar 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/plumthedev/laravel-cloudwatch-logger)[ Packagist](https://packagist.org/packages/plumthedev/laravel-cloudwatch-logger)[ Docs](https://github.com/plumthedev/laravel-cloudwatch-logger)[ RSS](/packages/plumthedev-laravel-cloudwatch-logger/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Laravel Cloudwatch Logger
=========================

[](#laravel-cloudwatch-logger)

[![PHP](https://camo.githubusercontent.com/bbeaca4ecdd74d3fde840f711ebb8a5def2ff801187623f9bc365761b3b66f86/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2532333737374242342e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/bbeaca4ecdd74d3fde840f711ebb8a5def2ff801187623f9bc365761b3b66f86/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2532333737374242342e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)[![Laravel](https://camo.githubusercontent.com/4a98123f3416c1e91b1616838d42e4bd5231f0a31c00b024a4d56168f22c1603/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d2532334646324432302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/4a98123f3416c1e91b1616838d42e4bd5231f0a31c00b024a4d56168f22c1603/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d2532334646324432302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)[![PhpStorm](https://camo.githubusercontent.com/0a232f095a061b7f45c7d09970563fd5646f07c9f5f9d65d7076871c4ee8a367/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70687073746f726d2d3134333f7374796c653d666f722d7468652d6261646765266c6f676f3d70687073746f726d266c6f676f436f6c6f723d626c61636b26636f6c6f723d626c61636b266c6162656c436f6c6f723d6461726b6f7263686964)](https://camo.githubusercontent.com/0a232f095a061b7f45c7d09970563fd5646f07c9f5f9d65d7076871c4ee8a367/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70687073746f726d2d3134333f7374796c653d666f722d7468652d6261646765266c6f676f3d70687073746f726d266c6f676f436f6c6f723d626c61636b26636f6c6f723d626c61636b266c6162656c436f6c6f723d6461726b6f7263686964)

[![quality check](https://github.com/plumthedev/laravel-cloudwatch-logger/actions/workflows/quality_check.yml/badge.svg)](https://github.com/plumthedev/laravel-cloudwatch-logger/actions/workflows/quality_check.yml/badge.svg)[![tests coverage](https://raw.githubusercontent.com/plumthedev/laravel-cloudwatch-logger/image-data/coverage.svg)](https://raw.githubusercontent.com/plumthedev/laravel-cloudwatch-logger/image-data/coverage.svg)

Laravel Cloudwatch Logger is a Laravel package that provides integration with AWS CloudWatch for logging.

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

[](#installation)

You can install the package via composer:

```
composer require plumthedev/laravel-cloudwatch-logger
```

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

[](#configuration)

This package allows you to configure AWS CloudWatch logging settings either globally or per channel.

### Global Configuration

[](#global-configuration)

If the `logging.cloudwatch` key is not present in your Laravel configuration, the package merges the following default configuration into the global logging configuration:

Configuration KeyDescriptionEnv NameDefault Valuelogging.cloudwatch.nameName of the CloudWatch log channelCLOUDWATCH\_LOGGER\_NAMELaravel Cloudwatch Loggerlogging.cloudwatch.regionAWS region for CloudWatch loggingCLOUDWATCH\_LOGGER\_REGIONeu-central-1logging.cloudwatch.versionAWS SDK versionCLOUDWATCH\_LOGGER\_VERSIONlatestlogging.cloudwatch.credentials.keyAWS access key for authenticationCLOUDWATCH\_LOGGER\_CREDENTIALS\_KEYlogging.cloudwatch.credentials.secretAWS secret key for authenticationCLOUDWATCH\_LOGGER\_CREDENTIALS\_SECRETlogging.cloudwatch.group\_nameDefault log group nameCLOUDWATCH\_LOGGER\_GROUP\_NAMEYour App Namelogging.cloudwatch.stream\_nameDefault log stream nameCLOUDWATCH\_LOGGER\_STREAM\_NAMEYour App Namelogging.cloudwatch.retention\_daysNumber of days to retain log eventsCLOUDWATCH\_LOGGER\_RETENTION\_DAYS14logging.cloudwatch.batch\_sizeMaximum number of log events to send in one batchCLOUDWATCH\_LOGGER\_BATCH\_SIZE25### Channel Configuration

[](#channel-configuration)

You can also override or specify additional configuration options for specific logging channels. For example:

```
// config/logging.php

'channels' => [
    ...
    'cloudwatch' => [
        'driver' => 'cloudwatch',
        'group_name' => 'api_v1',
        'stream' => 'V1 Payments Logger',
    ],
],

'cloudwatch' => [
   'name' => 'Laravel App',
   'group_name' => 'api',
   'stream' => 'component',
   'credentials' => [
        'key' => '...',
        'secret' => '...',
    ],
],
```

In the channel configuration, you can define specific settings such as the log group name (`group_name`) and log stream name (`stream_name`). These settings will override the corresponding global configuration values for the CloudWatch logging driver. While `credentials` will keep the same.

Testing
-------

[](#testing)

To run tests, you need to build a Docker image first:

```
make build
```

Only then you can execute the tests:

```
make test
```

Contribution
------------

[](#contribution)

If you spot areas for improvement, wish to make enhancements, or have ideas for further development, feel free to contribute to this project.

To access the project terminal, you must first build the Docker image:

```
make build
```

Afterward, you can enter the console:

```
make run
```

Before submitting a pull request, ensure everything is in order:

```
make check
```

License
-------

[](#license)

This project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file for details.

###  Health Score

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

741d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc6af4e44807e91cab81f865b72a8d888a6688cef455ae3670f97a7f2cbc251e?d=identicon)[plumthedev](/maintainers/plumthedev)

---

Top Contributors

[![plumthedev](https://avatars.githubusercontent.com/u/26173777?v=4)](https://github.com/plumthedev "plumthedev (1 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (1 commits)")

---

Tags

phplaravelawsloggerintegrationcloudwatch

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Dump、Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14241.9k1](/packages/guanguans-laravel-exception-notify)[ucan-lab/laravel-blink-logger

Comprehensive Logging Tool for Laravel.

124.6k](/packages/ucan-lab-laravel-blink-logger)

PHPackages © 2026

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