Jordi Boggiano
64f6dc944a
Type fixes
2018-11-04 23:31:55 +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
dddc7ed781
Fix some resettableinterface usages
2018-11-04 19:58:13 +01:00
Jordi Boggiano
073c5d763a
Merge branch '1.x'
2018-11-04 18:40:32 +01:00
Jordi Boggiano
a31ec40343
Type hints for browser console handler
2018-11-04 16:44:28 +01:00
Jordi Boggiano
0bcaf7a34c
Type hints for browser console handler
2018-11-04 16:40:26 +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
41b8f5ebf4
CS fixes
2018-06-18 18:53:46 +02:00
Jordi Boggiano
3319969e80
Merge branch '1.x'
2018-06-07 17:49:12 +02:00
Jakub Piasecki
a15c1daf91
Use late static bindings in BrowserConsoleHandler
2018-06-04 13:35:27 +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
c910bad3c4
Merge branch '1.x'
2016-03-04 17:20:46 +00:00
Jordi Boggiano
d68b63a0d0
Default to html when no content-type is set
2016-03-04 17:19:59 +00:00
John Hunt
88e483a815
Fixed small syntax bug with BrowserConsoleHandler preventing console output
...
Replaced commas in send() method when calling generateScript() - this was
preventing any javascript from being output
2016-03-04 17:08:06 +00:00
Jordi Boggiano
3d87f3ce4f
Merge branch '1.x'
2016-03-01 18:04:51 +00:00
Jordi Boggiano
127d7720c9
CS fixes
2016-03-01 18:00:33 +00:00
Jordi Boggiano
3d30ba5ecc
Add some return type hints and fix up HandlerWrapper
2016-03-01 17:35:54 +00:00
Jordi Boggiano
1048aa4a59
Allow BrowserConsoleHandler to be overridden for better integration in frameworks
2016-03-01 16:39:55 +00: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
9e342cb750
Fix escaping in BrowserConsoleHandler, fixes #537
2015-07-12 12:38:40 +01:00
Daniel Blok
e71ccdeb68
spelling
2015-06-22 15:48:06 +02:00
Daniel Blok
f856456b3d
Add support for Javascript output in BrowserConsoleHandler
2015-06-22 15:31:01 +02:00
Damien Seguy
0250fbe371
Remove concatenation
2015-05-02 15:24:12 +02:00
Pascal Borreli
a2c6c37c8d
Fixed typos
2015-03-05 01:11:15 +00:00
Jordi Boggiano
392ef35fd4
CS fixes
2014-03-23 20:50:26 +01:00
Jordi Boggiano
dc75a998d8
Remove leftover $self vars
2014-03-09 21:51:48 +01:00
Markus Staab
b9a043fe83
Minor simplificationy of BrowserConsoleHandler
2014-03-09 18:06:01 +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
ca88c4d4f3
Fix invalid output when message contain returns
2014-01-28 18:27:49 -08:00
Olivier Poitrey
65caca2b78
Some consmetic changes
2014-01-17 11:30:56 -08:00
Olivier Poitrey
f13900b7f1
Fix PHP 5.3 support for BrowserConsoleHandler
2014-01-16 19:11:16 -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