1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-20 16:16:37 +02:00
Commit Graph

8 Commits

Author SHA1 Message Date
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
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
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