mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 16:15:49 +03:00
[GH-ISSUE #848] FloodProtectedHandler #331
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#331
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?
Originally created by @Moosh-be on GitHub (Sep 8, 2016).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/848
Hello,
I need so, I want work on a new feature.
but before I explain it here for feedback
My target is to reduce quantity of similar event.
It's near but not DeduplicationHandler, BufferHandler or SamplingHandler
How ?
Before to store the event
My use case .
protect my system when I need to log events that happen rarely but arriving massively.
For example an error on a very very very FREQUENTLY displayed page.
WDYT about this ?
-- the class provide some common trigger expression like
--- ($counter % n)
--- (in array($counter, array(1,10,100,1000,10000,1000000 ))
--- (in array($counter, array(1,2,3,5,8,13,21,34,55,89, 144, 233, 377,610,987,1597,2584,4181,6765, 10946, 17711, ...))
@Moosh-be commented on GitHub (Sep 12, 2016):
ok a colleague told me that a "plug-in" already exist for that.
#34 #87
@Seldaek commented on GitHub (Sep 25, 2016):
Indeed, DeduplicationHandler is all we have right now, but I think it's kinda enough.. What you are looking for sounds very specialized and I think for custom cases it's better to write your custom handler. You can also publish it as a third party handler package so you can re-use it across projects or let others use it too of course.
@Moosh-be commented on GitHub (Sep 25, 2016):
Exactly my idea. Ok.
I would start on miy side aand share my work
@Moosh-be commented on GitHub (Sep 25, 2016):
https://github.com/bobagold/monolog-bubble