1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 20:27:31 +02:00

11 Commits

Author SHA1 Message Date
Jordi Boggiano
190aa65aac Fix chromephp tests 2019-09-05 14:33:55 +02: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
Douglas Reith
765d225554 Support HeadlessChrome (#966)
* Support HeadlessChrome
2017-06-19 01:47:42 +02: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