Releases: phpnexus/cwh
New release v3.2.0
New release v3.1.4
Fixes
- Fix type in docblock for
$levelin constructor, for compatibility with static analysis tools (Bug #5) - thank you @SiMoSiMo2
New release v3.1.3
Fixes
- Increase log event size to 1MB, to match new size allowed by AWS as of April 2025 (PR #4) - thank you @KentarouTakeda
Improvements
- Increased test coverage
New release v3.1.2
Fixes
- Update default quota on AWS for
DescribeLogGroupsandDescribeLogStreamsin the README
New release v3.1.1
Fixes
- Restore ability to use
nullfor the log retention setting, as per the example in the README (#2)
New release v3.1.0
Changed features
- Remove sequence token for PutLogEvents, as this is no longer required by AWS CloudWatch Logs (maxbanton/cwh#115)
New features
-
Add option
$createStream
Enabled by default for compatibility. Set tofalseto disable creating log streams automatically. This will also remove the need to callDescribeLogStreams, which has a limit of 5 requests per second per account per region. Please check the latest README.md for updated AWS IAM permission samples. -
Add option
$rpsLimit
Disabled by default for compatibility. Allows setting a per-second rate limit forPutLogEvents, which is useful for long running CLI scripts when setting a low$batchSize.
New release v3.0.0
After a couple of weeks of testing as a pre-release, the feature/php-8.1 branch seems stable, so I am releasing as v3.0.0.
For those who previously used the maxbanton/cwh repository with Monolog v2 and would like Monolog v3 and PHP 8.1 support, please try this release.
To install, simply run:
composer require phpnexus/cwhThank you!
Merge of feature/php-8.1
The original repository no longer seems to be maintained, so I've created this fork from the original maxbanton/cwh repository and merged the existing feature/php-8.1 branch. This provides compatibility with version 3 of Seldaek/monolog and naturally requires php >= 8.1.
After a minor fix it seems to work fine, but I've still marked this release as pre-release until I can run this in a production environment next week.
For anyone who'd like to try it out, please feel free to add to your composer.json require section as:
"phpnexus/cwh": "^v3.0.0-RC1@dev"
Note: by default the usual composer require command doesn't allow installation of packages not marked as "stable", hence the need to add directly to composer.json.