Jordi Boggiano
f9d56fd2f5
Prepare changelog
2019-11-13 11:27:43 +01:00
Jordi Boggiano
e5309196ce
Merge branch '1.x'
2019-11-13 11:00:16 +01:00
Jordi Boggiano
d5e2fb341c
Add missing use statement
2019-11-13 11:00:05 +01:00
Jordi Boggiano
4e19f3c585
Merge branch '1.x'
2019-11-13 10:58:42 +01:00
Jordi Boggiano
4a70fb3353
Add formatter forwarding to BufferHandler as well
2019-11-13 10:51:07 +01:00
George Mponos
966c2f64b3
Remove not needed cast
2018-12-09 22:22:04 +02:00
Jordi Boggiano
1c5b0b8ff4
Update return types
2018-11-19 14:40:54 +01:00
Jordi Boggiano
e07c948042
Merge branch '1.x', clean up close/reset for 2.0, refs #997
2018-11-04 22:41:52 +01:00
Jordi Boggiano
b80352368c
Add Logger::close and clarify what close and reset do plus
2018-11-04 22:15:25 +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
Jordi Boggiano
06143b03e5
Add a bunch of return types and fix type inconsistencies reports from phan
2018-07-04 14:14:08 +02:00
Jordi Boggiano
bd7b28e5ee
Merge branch '1.x'
2018-06-07 18:49:40 +02:00
Erik Booij
ecdfdc9897
Rename Boolean in phpDocs to bool
2017-11-04 12:14:41 +01: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
6c424f851c
Add a lot more scalar types and go strict in Logger
2015-12-18 17:48:48 +00:00
Jordi Boggiano
902c0c8694
Split interfaces and base/abstract classes into more sensible pieces
2015-12-18 17:48:40 +00:00
Jordi Boggiano
c889fb2648
CS fixes & upgrading cs fixer config
2015-11-18 17:09:46 +00:00
Jordi Boggiano
16afa5ac26
Remove duplicate call to BufferHandler::close, fixes #386
2014-07-28 22:08:10 +02:00
Jordi Boggiano
55b60344a8
Adds FingersCrossedHandler::clear and BufferHandler::clear, fixes #390
2014-07-28 20:45:50 +02:00
Jordi Boggiano
0d72125865
Lazy-initialize the buffer handler, fixes #359
2014-04-23 09:20:04 +02:00
skymeyer
5c7d1ea038
Unclutter bufferSize vs bufferLimit variable name
2013-08-23 18:30:53 -07:00
Jordi Boggiano
5feb21ae1a
Fix Buffer, Group and FingersCrossed handlers to make use of their processors, fixes #170
2013-03-17 19:36:02 +01:00
Jordi Boggiano
9c8db38385
CS fixes
2012-12-14 12:15:30 +01:00
Jordi Boggiano
bcb51e0140
Add $flushOnOverflow and refactor BufferHandler's internals, fixes #120 , fixes #104
2012-11-11 18:03:04 +01:00
Jordi Boggiano
da33c84d07
CS fixes
2012-06-14 15:47:01 +02:00
Shreef
96a2319a24
little update related to issue #91 to make sure that the buffer won't get sent to the sub-handler twice
2012-06-14 15:21:41 +02:00
Shreef
85317d4f8f
fixed issue #91
2012-06-14 14:58:17 +02:00
Jordi Boggiano
6a2d207f98
Bubbling defaults to true
2011-06-10 16:03:47 +02:00
Christophe Coevoet
0defabb726
Refactored the AbstractHandler to avoid having some dummy write() methods
2011-05-11 18:43:04 +02:00
Christophe Coevoet
2d959bf8b3
Added a level for the BufferHandler
2011-04-07 12:49:09 +02:00
Jordi Boggiano
7fd13f6aec
Minor fixes
2011-04-06 13:58:58 +02:00
Christophe Coevoet
3cb3dbdc8f
Made the write method protected
...
Tests are not a good reason to make it public.
2011-04-06 13:22:06 +02:00
Christophe Coevoet
87332a3e4e
Added phpdoc for all methods and added the typehint for the FormatterInterface
2011-04-06 00:50:18 +02:00
Christophe Coevoet
b2d356bbf2
Added a BufferHandler to allow batch processing of the records
2011-04-05 09:41:27 +02:00