Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend log filter sample #4809

Closed
wants to merge 287 commits into from
Closed

Zend log filter sample #4809

wants to merge 287 commits into from

Conversation

corentin-larose
Copy link
Contributor

This filter is intended to sample events by a given factor for events intensive scripts.

Never forget this is a random based sampling, thus, you never exactly know which event will be logged.

Usage:

$logger = new Zend\Log\Logger();

$writer = new Zend\Log\Writer\Stream('/path/to/first/logfile');
$logger->addWriter($writer);

// No event is logged
$filter = new Zend\Log\Filter\Sample(0);
$writer->addFilter($filter);

// All events are logged
$filter = new Zend\Log\Filter\Sample(1);
$writer->addFilter($filter);

// 2 random events among 3 are logged
$filter = new Zend\Log\Filter\Sample(2/3);
$writer->addFilter($filter);

weierophinney and others added 30 commits May 9, 2013 12:10
* added better testing for DbTableGateway paginator
Merge branch 'fmarquis-master' into develop
Merge branch 'YannickDa-SqlSetTable' into develop
Merge branch 'AgentCoop-develop' into develop
Back to dev version

Conflicts:
	README.md
	library/Zend/Version/Version.php
2.2.0 readiness

Conflicts:
	README.md
	library/Zend/Version/Version.php
Conflicts:
	README.md
	library/Zend/Version/Version.php
richardjennings and others added 28 commits June 30, 2013 13:15
Forward port #4746

Conflicts:
	composer.json
getValue() for MonthSelect, DateSelect and DateTimeSelect Form Elements
- 29030f7 removed an if/then/else block that helped build the response
  text from the view model, and should not have. This commit reinstates
  that code, allowing tests to pass again.
Fixes failing unit tests in the Zend\Test component
- one argument per line
Conflicts:
	tests/ZendTest/Form/View/Helper/FormRowTest.php
- as it is inherited from FilterProviderInterface
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 01b40f8 on qapa:zend-log-filter-sample into * on zendframework:master*.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.