mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 00:25:50 +03:00
[PR #602] [MERGED] Adds ability to cap log size in redis #1252
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#1252
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Seldaek/monolog/pull/602
Author: @ninjapenguin
Created: 7/12/2015
Status: ✅ Merged
Merged: 7/14/2015
Merged by: @Seldaek
Base:
master← Head:add-redis-apped-collection📝 Commits (4)
0506942Adds ability to cap log size in redis4d59281Fixes 5.3 compatibility in test casesae2b2d0fixes reference for 5.3 in predis callback12711d1Switch back to using rpush📊 Changes
2 files changed (+97 additions, -6 deletions)
View changed files
📝
src/Monolog/Handler/RedisHandler.php(+41 -6)📝
tests/Monolog/Handler/RedisHandlerTest.php(+56 -0)📄 Description
100% backward compatible, defaults to not capping collection size.
Additional constructor param of $capSize added which will ensure logs
list is treated as a FILO queue
Test coverage on new functionality
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.