1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 13:46:38 +02:00

825 Commits

Author SHA1 Message Date
Jordi Boggiano
4a26052806 Merge remote-tracking branch 'inverse/fallbackgroundhandler' 2019-08-15 21:23:11 +02:00
Jordi Boggiano
330988295a Merge remote-tracking branch 'origin/1.x' 2019-08-15 21:19:47 +02:00
Malachi Soord
ab236865a7 Add FallbackGroupHandler 2019-08-13 17:55:34 +02:00
Malachi Soord
021e5a5fe8 Change the assert for counting test result values 2019-08-13 16:54:43 +02:00
Mario Blažek
d317cb97d3 Move expectException before the line where exception is thrown 2019-08-13 15:34:48 +02:00
Mario Blažek
37900f9268 Upgrade PHPUnit to v8 2019-08-12 15:20:00 +02:00
Thomas Perez
4e095f38f4 Fix error_handler return type declaration 2019-07-31 22:19:02 +02:00
Jason Davis
ca3a914276 Update for compatibility with actively maintained versions of Zend Server 2019-07-12 11:57:06 -07:00
vershinin_so
c79d81ec28 mb_* functions with BC 2019-07-08 11:05:19 +03:00
vershinin_so
ada57dd4a1 use mb_ functions in GelfFormatter 2019-07-08 10:30:25 +03:00
Jordi Boggiano
8b1213aa1e Merge branch '1.x' 2019-07-06 14:49:15 +02:00
Jordi Boggiano
9a4be64075 Merge pull request #1336 from alexandrmazur96/master
Add telegram bot handler.
2019-07-06 13:34:51 +02:00
Jordi Boggiano
81108d4e8a Fix SyslogUdpHandler tests 2019-07-06 13:29:30 +02:00
Jordi Boggiano
0c3811c8b1 Remove RavenHandler as it is deprecated in 1.x 2019-07-06 13:23:58 +02:00
Alexandr Mazur
1284105074 Add telegram bot handler. 2019-07-05 19:15:10 +03:00
Jordi Boggiano
69c7f034ff Merge remote-tracking branch 'origin/1.x' 2019-07-02 16:19:13 +02:00
Jordi Boggiano
97ea28435b Merge pull request #1304 from dominikkukacka/feature/syslog-udp-rfc3164
Add possibility to use RFC3164 for udp syslog
2019-07-02 16:16:48 +02:00
Jordi Boggiano
10bfeb8bcd Merge branch '1.x' 2019-07-02 15:55:14 +02:00
Jordi Boggiano
3a05a7c438 Merge pull request #1083 from krisbuist/threshold-handler
Add an OverflowHandler
2019-06-30 18:35:44 +02:00
Dominik Kukacka
80e8b0d575 Add possibility to use RFC3164 for udp syslog 2019-03-22 22:49:38 +01:00
1adbed5c92 Fix create duplicate records in *GroupHandler 2019-01-25 13:06:55 +02:00
George Mponos
655b4284d8 Delete slackbot handler 2018-12-26 16:38:36 +02:00
Jordi Boggiano
d13bdbaf82 Merge pull request #1254 from gmponos/remove_check_php_ver
Remove not needed checks for PHP version
2018-12-26 15:29:46 +01:00
Jordi Boggiano
326472abd1 Merge pull request #1261 from gmponos/remove_assert_internal
Remove assertInternalType that it is deprecated
2018-12-26 15:29:23 +01:00
George Mponos
ee350961da Remove assertInternalType that it is deprecated 2018-12-16 23:46:26 +02:00
andyexeter
897fca0d9b Add SoapFault exception formatting test 2018-12-15 13:56:25 +00:00
George Mponos
e855ad8923 Remove not needed checks for PHP version 2018-12-11 17:01:05 +02:00
George Mponos
5c8e68b6de Fix mockobjects docblocks in tests 2018-12-09 21:57:40 +02:00
Jordi Boggiano
0ad73a526f CS fixes 2018-12-08 18:16:32 +01:00
Jordi Boggiano
b978700c05 Merge remote-tracking branch 'akalongman/feature/elasticsearch' 2018-12-08 18:11:25 +01:00
Mponos George
daed05c3e5 Enable JSON encode pretty print (#1236) 2018-12-04 10:30:41 +01:00
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
aaf61a47da Merge pull request #1234 from gmponos/update_phpunit_7
Update to phpunit 7
2018-11-30 08:26:31 +01:00
Jordi Boggiano
bb99e4c699 Tweak const visibility, refs #1228 2018-11-29 20:09:44 +01:00
George Mponos
43b7120b66 Merge branch 'master' into update_phpunit_7 2018-11-21 23:24:56 +02:00
George Mponos
2483a8d24f Fix tests for phpunit 7 2018-11-21 23:24:05 +02:00
George Mponos
bff59f7642 Fix failing tests 2018-11-21 22:58:31 +02:00
Kris Buist
7dd453e694 Rename ThresholdHandler to OverflowHandler 2018-11-20 20:03:58 +01:00
Jordi Boggiano
a7b16cfc73 Allow setting a formatter on the PsrHandler, fixes #1070 2018-11-19 23:50:49 +01:00
Jordi Boggiano
4a33226f25 Wrap up type-hint adding to all handlers 2018-11-19 23:28:33 +01:00
Jordi Boggiano
1c5b0b8ff4 Update return types 2018-11-19 14:40:54 +01:00
Jordi Boggiano
c5bba4ac64 Fix test case class name 2018-11-04 19:41:54 +01:00
Jordi Boggiano
073c5d763a Merge branch '1.x' 2018-11-04 18:40:32 +01:00
Jordi Boggiano
24dafdeb8e Merge pull request #1117 from RGustBardon/rgb/signal-handler
Register signal handlers
2018-11-04 18:28:17 +01:00
Dimitri Gritsajuk
869ca5963f [RavenHandler] Add environment and breadcrumbs support 2018-11-02 22:01:16 +01:00
Dimitri Gritsajuk
67365f0300 Fix test 2018-10-28 14:14:18 +01:00
Avtandil Kikabidze
8656fb1352 Merge branch 'master' into feature/elasticsearch 2018-09-12 18:08:44 +04:00
Grégoire Pineau
0625068bf0 Added a new ResettableInterface and implemented it where possible.
When one use Monolog in a long process like an AMQP worker with a
`FingersCrossedHandler` or `BufferHandler` there is a drawback: as soon as there
is an AMQP message that generate a log >= error (for example), all next AMQP
messages will output logs, even if theses messages don't generate log where
level >= error.

In the same context there is a drawback for processor that add an UUID to the
logs. The UUID should change for each AMQP messages.

---

This patch address this issue with a new interface: `ResettableInterface` interface.
Side note: `reset()`, `flush()`, `clear()`,  are already used in Monolog. So
basically, one can use the `reset()` on the `Logger` and on some
`Handler`s / `Processor`s.

It's especially useful for

* the `FingersCrossedHandler`: it `close()` the buffer, then it `clear()` the buffer.
* the `BufferHandler`: it `flush()` the buffer, then it `clear()` the buffer.
* the `UidProcessor`: it renew the `uid`.
2018-07-06 16:07:13 +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