1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-20 20:01:52 +02:00
Commit Graph

20 Commits

Author SHA1 Message Date
Markus Staab
7ca003e6ae Rename TestCase to MonologTestCase (#1953) 2025-03-16 13:30:20 +01:00
Jordi Boggiano
f43e3d5637 Upgrade phpstan, phpunit (#1923)
* Upgrade phpstan, phpunit

* Fix phpunit deprecation

* Fix hg tests

* Fix php-console tests

* Fix phpunit on 8.1

* Bump phpconsole
2024-11-11 15:21:55 +01:00
Jordi Boggiano
8471abd5ef Merge branch '2.x' 2022-08-02 15:04:49 +03:00
Jordi Boggiano
132eace138 Fix build 2022-08-02 15:03:47 +03:00
Jordi Boggiano
2d006a8472 Convert level/levelName to enums (#1656) 2022-04-19 21:49:03 +02:00
Jordi Boggiano
0b9ee7e636 Merge branch '1.x' 2019-11-12 21:50:28 +01:00
Trevor North
0ff3a9bd03 Fix BrowserConsoleHandler formatting
This resolves an issue whereby all styles would be applied in reverse
order to the formatting markers.
2019-11-12 20:36:02 +01:00
Jordi Boggiano
4bfd341586 Fix type error, fixes #1369 2019-09-05 14:38:03 +02:00
Mario Blažek
37900f9268 Upgrade PHPUnit to v8 2019-08-12 15:20:00 +02: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
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
b738a6c04c CS fixes 2014-10-17 19:12:45 +01:00
Jordi Boggiano
392ef35fd4 CS fixes 2014-03-23 20:50:26 +01:00
Jordi Boggiano
613997042c Refactor the browser console handler to keep more methods private, refs #303 2014-03-09 17:50:58 +01:00
Olivier Poitrey
e521588acb Use more "unique" markers format for styling 2014-01-31 00:36:40 -08:00
Olivier Poitrey
65caca2b78 Some consmetic changes 2014-01-17 11:30:56 -08:00
Olivier Poitrey
577b7fe96c Add BrowserConsoleHandler
BrowserConsoleHandler is an handler sending logs to browser's javascript console
with no browser extension required
2014-01-16 18:15:41 -08:00