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

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

hatchetaustralia/laravel-cloudwatch-logger
==========================================

Laravel logger for AWS Clouldwatch Log service.

v3.0.0(3y ago)01.6kMITPHPPHP ^7.3|^8.0

Since Jul 15Pushed 3y agoCompare

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

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

Laravel Logger for AWS CloudWatch
=================================

[](#laravel-logger-for-aws-cloudwatch)

Laravel logger factory for AWS Cloudwatch Logs service.

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

[](#installation)

You can install the package via composer:

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

Usage
-----

[](#usage)

Config parameters for logging are defined at `config/logging.php`.

You need to add new channel as `cloudwatch` and copy params inside `config/config.php` into it.

```
'channels' => [
    ...

    'cloudwatch' => [
        'driver' => 'custom',
        'via' => \Hatchet\LaravelCloudWatchLogger\LaravelCloudWatchLoggerFactory::class,
        'aws' => [
            'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
            'version' => 'latest',
            'credentials' => [
                'key' => env('AWS_ACCESS_KEY_ID'),
                'secret' => env('AWS_SECRET_ACCESS_KEY'),
            ],
        ],
        'name' => env('CLOUDWATCH_LOG_NAME', ''),
        'group' => env('CLOUDWATCH_LOG_GROUP_NAME', env('APP_NAME') . '-' . env('APP_ENV')),
        'stream' => env('CLOUDWATCH_LOG_STREAM', 'default'),
        'retention' => env('CLOUDWATCH_LOG_RETENTION', 7),
        'level' => env('CLOUDWATCH_LOG_LEVEL', 'error'),
        'batch_size' => env('CLOUDWATCH_LOG_BATCH_SIZE', 10000),
        'enabled' => env('CLOUDWATCH_ENABLED', true),
        'extra' => [
            'env' => env('APP_ENV'),
            'php' => PHP_VERSION,
            'laravel' => app()->version(),
        ],
    ],
],
```

Change the log channel inside `.env` file with `cloudwatch`.

```
LOG_CHANNEL=cloudwatch
```

You can use Laravel's default `Log` class to send your logs to CloudWatch.

```
\Illuminate\Support\Facades\Log::info('user logged in successfully', [
    'id' => 1,
    'username' => 'JohnDoe',
    'ip' => '127.0.0.1',
]);
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Turan Karatuğ](https://github.com/tkaratug)
- [Faruk Can](https://github.com/frkcn)
- [Yunus Emre Deligöz](https://github.com/deligoez)
- [Hakan Özdemir](https://github.com/hozdemir)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~190 days

Total

5

Last Release

1367d ago

Major Versions

v1.0.0 → v2.0.02020-10-06

v2.0.2 → v3.0.02022-08-15

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

v2.0.0PHP ^7.3

v3.0.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a3485b619f8f287aba5325e29d894b0d43b16cc9d413816a39c0b4dc2aa8dd8?d=identicon)[hatchet](/maintainers/hatchet)

---

Top Contributors

[![tkaratug](https://avatars.githubusercontent.com/u/4394344?v=4)](https://github.com/tkaratug "tkaratug (3 commits)")[![bradietilley](https://avatars.githubusercontent.com/u/44430471?v=4)](https://github.com/bradietilley "bradietilley (1 commits)")

---

Tags

laravelcloudwatchlaravel-cloudwatch-loggerhatchethatchetaustralia

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[tarfin-labs/laravel-cloudwatch-logger

Laravel logger for AWS Clouldwatch Log service.

20160.7k](/packages/tarfin-labs-laravel-cloudwatch-logger)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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