1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 04:37:38 +02:00

22 Commits

Author SHA1 Message Date
erikn69
27dc1b2ef7 Fix utf8_encode deprecation (#1722) 2022-07-22 14:23:53 +02:00
Jordi Boggiano
40cce3ba0b Merge branch '1.x' 2019-09-05 14:38:58 +02:00
Jordi Boggiano
190aa65aac Fix chromephp tests 2019-09-05 14:33:55 +02:00
Mario Blažek
37900f9268 Upgrade PHPUnit to v8 2019-08-12 15:20:00 +02:00
Jordi Boggiano
bb99e4c699 Tweak const visibility, refs #1228 2018-11-29 20:09:44 +01:00
Jordi Boggiano
1c5b0b8ff4 Update return types 2018-11-19 14:40:54 +01:00
Jordi Boggiano
073c5d763a Merge branch '1.x' 2018-11-04 18:40:32 +01: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
Pascal
5bb1c5fb4f Check if monolog runs in web context (#1024)
* Check if monolog runs in web context
2018-06-11 17:36:34 +02:00
Jordi Boggiano
1417e2d183 Merge branch '1.x' 2017-06-19 02:16:33 +02:00
Douglas Reith
765d225554 Support HeadlessChrome (#966)
* Support HeadlessChrome
2017-06-19 01:47:42 +02: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
Jordi Boggiano
d7b415c2c8 Make TestCase class available to dependents to help with testing 2016-05-20 20:09:02 +01:00
Jordi Boggiano
c889fb2648 CS fixes & upgrading cs fixer config 2015-11-18 17:09:46 +00:00
Jordi Boggiano
ca1376bd61 CS fixes 2015-07-14 10:26:05 +01:00
Jordi Boggiano
7567cecfa5 Optimize ChromePHP/FirePHP to skip header generation when they are disabled, refs #360 2014-04-23 15:56:51 +02:00
Christophe Coevoet
d885932183 Updated the ChromePHPHandler for the new version of the extension 2013-04-23 14:22:10 +02:00
Jordi Boggiano
41d514114c Output message to the user when chrome logs have been truncated, refs #172 2013-04-23 12:05:59 +02:00
Jordi Boggiano
6275edbe75 Stop sending logs when the chrome header size limit has been reached, fixes #172 2013-04-23 11:47:22 +02:00
Jordi Boggiano
da33c84d07 CS fixes 2012-06-14 15:47:01 +02:00
Jordi Boggiano
8d4ac5c0f7 Rename ChromePhp to ChromePHP for consistency with FirePHP 2012-02-20 17:35:45 +01:00