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

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

dneey/laravel-cloudwatch
========================

Quickly add cloudwatch logging to your laravel application.

v1.1.0(4y ago)762.1k↓16.3%2MITPHPPHP ^7.2.0

Since Sep 9Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (8)Used By (0)

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

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

Implementation of [maxbanton AWS handler for monolog](https://github.com/maxbanton/cwh) in [Laravel](https://github.com/laravel/laravel).

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

[](#requirements)

- PHP ^7.2.0
- Laravel ^6.0

Features
--------

[](#features)

- Includes incoming request parameters on every log.
- Includes a `requestId` on every log to narrow down search results to a particular request's lifecycle.

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

[](#installation)

Install the latest version with [Composer](https://getcomposer.org/) by running

```
composer require dneey/laravel-cloudwatch
```

Basic Usage
-----------

[](#basic-usage)

Drop this in your application's `.env` file with your correct AWS credentials.

```
LOG_CHANNEL=cloudwatch

AWS_ACCESS_KEY_ID=aws-key
AWS_SECRET_ACCESS_KEY=aws-secret
AWS_DEFAULT_REGION=aws-region
```

That's it!

```
Log::info('You are now logging to cloudwatch');
```

Extra Configurations
--------------------

[](#extra-configurations)

- You can configure your cloudwatch `log group name` and `stream name` in your .env file. If not set, the value of your `APP_NAME` will be used as the log group name and the value of your `APP_NAME` and `APP_ENV` will be used as your log stream name.

```
AWS_CLOUD_WATCH_GROUP_NAME=project-name
AWS_CLOUD_WATCH_STREAM_NAME=project-name-env
```

- Set log level eg. INFO,CRITICAL,DEBUG,API etc.

```
AWS_CLOUD_WATCH_LEVEL=INFO
```

- Set log retention period cloudwatch in days. The default is `14` days.

```
AWS_CLOUD_WATCH_RETENTION_DAYS=14
```

- By default all request params will be logged except passwords and password confirmations. To change this, set `LOG_REQUEST_PARAMS` to false in the .env file.

```
LOG_REQUEST_PARAMS=false
```

- You can ignore any request parameter by adding a `LOG_REQUESTS_EXCEPT` entry to your .env file. The value should contain a comma separated string of fields to exclude from your logs.

```
LOG_REQUESTS_EXCEPT="password, password_confirmation, image"
```

Example
-------

[](#example)

```
Log::info('Awesome! You are now logging to cloudwatch from Laravel.');
```

AWS
---

[](#aws)

For AWS IAM and policy examples, kindly visit [maxbanton AWS handler for monolog.](https://github.com/maxbanton/cwh)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.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 ~100 days

Recently: every ~124 days

Total

6

Last Release

1578d ago

Major Versions

v0.1.x-dev → v1.0.02020-09-14

PHP version history (2 changes)v0.1.0PHP &gt;=7.1.3

v1.0.0PHP ^7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ed037ad345cb818910461e420f004f358c1461d6f006534ab003fe939ccf8f4?d=identicon)[dneey](/maintainers/dneey)

---

Top Contributors

[![dneey](https://avatars.githubusercontent.com/u/20254688?v=4)](https://github.com/dneey "dneey (61 commits)")[![edwinkkh](https://avatars.githubusercontent.com/u/14085719?v=4)](https://github.com/edwinkkh "edwinkkh (1 commits)")

---

Tags

aws-cloudwatchcloudwatchlaravellogmaxbanton-aws-handlermonologobservability

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[open-telemetry/api

API for OpenTelemetry PHP.

1933.0M214](/packages/open-telemetry-api)

PHPackages © 2026

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