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

ActiveLibrary

dhs/cloudwatch-laravel-log
==========================

Push logs to cloudwatch for Laravel &gt;= 9

01.8k1[1 PRs](https://github.com/Dinhhongson230511/cloudwatch-logs-laravel/pulls)PHP

Since Mar 16Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Disclaimer
----------

[](#disclaimer)

This library uses AWS API through AWS PHP SDK, which has limits on concurrent requests. It means that on high concurrent or high load applications it may not work on it's best way. Please consider using another solution such as logging to the stdout and redirecting logs with fluentd.

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

[](#requirements)

- PHP &gt;=8.1
- AWS account with proper permissions (see list of permissions below)

Features
--------

[](#features)

- Up to 10000 batch logs sending in order to avoid *Rate exceeded* errors
- Log Groups creating with tags
- AWS CloudWatch Logs staff lazy loading
- Suitable for web applications and for long-living CLI daemons and workers

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

[](#installation)

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

```
$ composer require dhs/cloudwatch-laravel-log:dev-master
```

Basic Laravel Usage
-------------------

[](#basic-laravel-usage)

- Create a folder Logging and create a file CloudWatchLoggerFactory.php
- Guide Link: [Guid](https://s2sontech.com/php-and-laravel/laravel-10-logging-aws-cloudwatch)

```
