PHPackages                             felixmaier1989/maxbanton-cwh - 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. felixmaier1989/maxbanton-cwh

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

felixmaier1989/maxbanton-cwh
============================

AWS CloudWatch Handler for Monolog library

v1.1.32(8y ago)116MITPHP

Since Jul 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/felixmaier1989/cwh)[ Packagist](https://packagist.org/packages/felixmaier1989/maxbanton-cwh)[ RSS](/packages/felixmaier1989-maxbanton-cwh/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (12)Used By (0)

AWS CloudWatch Logs Handler for Monolog
=======================================

[](#aws-cloudwatch-logs-handler-for-monolog)

[![Build Status](https://camo.githubusercontent.com/036caf735c99c21fe3e4894b22ad79c09752154571cee33b07f8b6f07d3ac525/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d617862616e746f6e2f6377682f6d61737465722e737667)](https://travis-ci.org/maxbanton/cwh)[![Coverage Status](https://camo.githubusercontent.com/735a5a48a49b5879fdbef1022f3fcffb911130a8a1fd8b0f7a12b89bc0369ab5/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6d617862616e746f6e2f6377682f6d61737465722e737667)](https://coveralls.io/github/maxbanton/cwh?branch=master)[![License](https://camo.githubusercontent.com/caf149665127a1344675645dbadcfe0f1d85bd0e5c6bf512e3cb25f4eccebcfe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d617862616e746f6e2f6377682e737667)](https://github.com/maxbanton/cwh/blob/master/LICENSE)[![Version](https://camo.githubusercontent.com/c163589555b9d4ce5b8bc3d47dacc0b2829b492ba172e7416cc3bafc99083acc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617862616e746f6e2f6377682e737667)](https://packagist.org/packages/maxbanton/cwh)[![Downloads](https://camo.githubusercontent.com/35b8819b17c6b455b275bafd4452ccf55585401a6719fd477916d733a8c21df4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617862616e746f6e2f6377682e737667)](https://packagist.org/packages/maxbanton/cwh/stats)

Handler for PHP logging library [Monolog](https://github.com/Seldaek/monolog) for sending log entries to [AWS CloudWatch Logs](http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html) service.

Before using this library, it's recommended to get acquainted with the [pricing](https://aws.amazon.com/en/cloudwatch/pricing/) for AWS CloudWatch services.

Please press **★ Star** button if you find this library useful, aslo you can [donate](#donate) if you like to.

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
- Compatible with PHP 5.6 / 7.0 / 7.1

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

[](#installation)

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

```
$ composer require maxbanton/cwh:^1.0
```

Upgrade
-------

[](#upgrade)

Change in your composer.json

```
{
  "require": {
    "maxbanton/cwh": "^0.0.3"
  }
}

```

to

```
{
  "require": {
    "maxbanton/cwh": "^1.0"
  }
}

```

then run

```
$ composer update
```

and change your code

```
