marvinlabs / laravel-discord-logger

Logging to a discord channel in Laravel
MIT License
172 stars 40 forks source link

[Feat] Anti log spam #11

Open neoteknic opened 4 years ago

neoteknic commented 4 years ago

Add throttle option to log (use Cache / redis cache) to don't spam many time the same error with 2 options : enabled, throttle time (default 3600 sec) key is : md5(the error name, file name, and line number)

vpratfr commented 4 years ago

Hi

Feel free to submit a PR to support this.

Regards,

tarikhagustia commented 4 years ago

i think we don't need to cache the error notification, because we need to fix the error as soon as possible

vpratfr commented 4 years ago

I agree it would be a nice thing to have. That error could be muted for an hour and then popup again to avoid too much noise.

MrJmpl3 commented 4 years ago

I think the AntiLog Spam its great but need be a another package.

illnesse commented 3 years ago

Was just looking if someone already suggested log throttling 👍

vpratfr commented 3 years ago

I think the AntiLog Spam its great but need be a another package.

true

Chrisx84 commented 5 months ago

would be a nice feature since one error in a cronjob can trigger the spam but also good to know that its a critical bug that needs attention immediately.