mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-21 04:11:47 +02:00
Add a SamplingHandler
It wraps around another handler, and only passes on some messages based on the provided sampling handler. This was originally written for MediaWiki: https://gerrit.wikimedia.org/r/181346
This commit is contained in:
@@ -186,6 +186,8 @@ Handlers
|
||||
sent to all the handlers it is configured with.
|
||||
- _FilterHandler_: This handler only lets records of the given levels through
|
||||
to the wrapped handler.
|
||||
- _SamplingHandler_: Wraps around another handler and lets you sample records
|
||||
if you only want to store some of them.
|
||||
- _TestHandler_: Used for testing, it records everything that is sent to it and
|
||||
has accessors to read out the information.
|
||||
- _WhatFailureGroupHandler_: This handler extends the _GroupHandler_ ignoring
|
||||
|
Reference in New Issue
Block a user