Jordi Boggiano
204744df2e
Merge branch '1.x'
2018-11-30 08:44:17 +01:00
Jordi Boggiano
a335f6f1a5
Fix tests for TestHandler reset support
2018-11-30 08:43:17 +01:00
Jordi Boggiano
4a33226f25
Wrap up type-hint adding to all handlers
2018-11-19 23:28:33 +01:00
George Mponos
9ba4f22832
Reset test handler
2018-11-17 20:30:52 +02:00
Jordi Boggiano
06143b03e5
Add a bunch of return types and fix type inconsistencies reports from phan
2018-07-04 14:14:08 +02:00
Jordi Boggiano
41b8f5ebf4
CS fixes
2018-06-18 18:53:46 +02:00
Jordi Boggiano
873ac681a6
Merge branch '1.x'
2018-06-18 17:27:30 +02:00
Jordi Boggiano
57a8a172e5
Update changelog
2018-06-18 16:38:33 +02:00
Jordi Boggiano
95f62f7e3c
Merge branch '1.x'
2018-06-18 15:54:04 +02:00
Petter Blomberg
f753c68a73
Make context optional in hasRecord to not break backwards compatibility
2018-06-18 15:52:04 +02:00
Petter Blomberg
b381a973bc
Make TestHandler::hasRecord assert context, not only message
2018-06-18 15:50:12 +02:00
Grégoire Pineau
5a041bab8f
Use callable typehint where possible + Removed dead code ( #996 )
...
* Removed dead code
* Use callable typehint where possible
* Removed PHP5.3 workaround
2017-06-19 01:41:02 +02:00
Jordi Boggiano
9a6bf92626
Merge branch '1.x'
2016-11-16 12:16:26 +01:00
Julien Falque
9d43c66cc6
Make protected generic methods public
2016-11-16 12:15:57 +01:00
Jordi Boggiano
21dde4dedb
Move to strict mode and fix tests
2016-05-27 13:44:00 +01:00
Jordi Boggiano
f200e79879
CS fixes
2016-05-26 20:54:06 +01:00
Harm van Tilborg
3dd221b319
Tiny typo in TestHandler exception
2016-05-06 10:48:17 +02:00
Jordi Boggiano
1fa91efc3b
Add DeduplicationHandler to avoid spamming the same log records over and over
2016-04-12 18:31:22 +01:00
Jordi Boggiano
127d7720c9
CS fixes
2016-03-01 18:00:33 +00:00
Jordi Boggiano
ca1376bd61
CS fixes
2015-07-14 10:26:05 +01:00
Austin Hyde
f2fea2c3f5
Add TestHandler::hasRecordThatMatches($regex, $level)
2015-06-20 19:41:52 -04:00
Austin Hyde
3e8f0ecb36
Replace boilerplate with magic methods
2015-06-20 19:39:06 -04:00
Austin Hyde
202d3750d6
Move record searching to its own method: hasRecordThatPasses()
2015-06-20 19:24:29 -04:00
Richard Tuin
b63e013827
Add strpos based TestHandler methods
2015-03-18 07:34:38 +01:00
Jordi Boggiano
61359a972b
Merge remote-tracking branch 'FGM/master'
2012-06-19 20:28:04 +02:00
Jordi Boggiano
da33c84d07
CS fixes
2012-06-14 15:47:01 +02:00
Frederic G. MARAND
07aac12c72
Implement the 8 RFC3164 severity levels instead of just 6.
...
- constants defined for the 2 missing levels: NOTICE and EMERGENCY.
- add<level>() and <level>() convenience methods added.
- TestHandler and tests updated to account for the two extra levels.
- surjective mappings from the RFC3164 to only 6 levels changes to bijective.
- README updated accordingly.
2012-05-28 20:29:27 +02:00
Jordi Boggiano
7a56a1c73f
Tested the TestHandler (WTF)
2011-06-29 20:38:40 +02:00
Christophe Coevoet
c1669860fa
Added missing initialization of the arrays for TestHandler
2011-05-31 00:23:27 +02:00
Christophe Coevoet
0defabb726
Refactored the AbstractHandler to avoid having some dummy write() methods
2011-05-11 18:43:04 +02:00
Christophe Coevoet
10f5e3c746
Added support of ALERT and CRITICAL in TestHandler
2011-05-06 21:24:27 +02:00
Christophe Coevoet
3cb3dbdc8f
Made the write method protected
...
Tests are not a good reason to make it public.
2011-04-06 13:22:06 +02:00
Christophe Coevoet
87332a3e4e
Added phpdoc for all methods and added the typehint for the FormatterInterface
2011-04-06 00:50:18 +02:00
Jordi Boggiano
b90eddd513
Fix typos
2011-04-03 16:43:49 +02:00
Christophe Coevoet
3a3c96d6d7
Added some methods in the HandlerInterface and some typehints
2011-03-19 23:07:44 +01:00
Jordi Boggiano
6c24217c56
Renamed message to record
2011-02-25 23:01:43 +01:00
Jordi Boggiano
811e6c79d6
Added docblocks and fixed a couple tests
2011-02-22 12:10:54 +01:00
Jordi Boggiano
504e7003e4
Adjusted method names
2011-02-20 22:31:55 +01:00
Jordi Boggiano
1808350061
Added TestHandler
2011-02-20 22:26:29 +01:00