Fabien
39c7e04ad4
Set phpredis multi() mode parameter
2019-12-19 21:45:05 +01:00
Matthias Pigulla
f8245696b3
Use strtr() instead of strtoupper() to avoid bogus results
...
For examle the tr_TR locale will upper-case "i" to the
"latin capital letter i with dot above" İ.
2019-12-07 11:40:26 +00:00
Jordi Boggiano
3c3ff5881c
Avoid calling nested handler entirely if there is nothing left to handle
2019-11-15 15:46:53 +01:00
David Maicher
525d29847a
FilterHandler: fix handle empty batch of filtered records
2019-11-15 13:07:02 +01:00
Jordi Boggiano
d5e2fb341c
Add missing use statement
2019-11-13 11:00:05 +01:00
Jordi Boggiano
4a70fb3353
Add formatter forwarding to BufferHandler as well
2019-11-13 10:51:07 +01:00
Jordi Boggiano
ec3e0e3f90
set json flags correctly for SlackRecord, fixes #1396 , closes #1397
2019-11-13 10:47:25 +01:00
Jordi Boggiano
dc2895c80d
Suppress errors when json_encode has ignoreErrors set
2019-11-12 22:18:23 +01:00
Jordi Boggiano
12a76ad61e
Fix usages of json_encode which did not handle invalid UTF8 gracefully, fixes #1392
2019-11-12 21:24:23 +01:00
Jordi Boggiano
e1af546a55
Handle detail key of SoapFault being an object, fixes #1391
2019-11-12 20:49:34 +01:00
Jordi Boggiano
cf77550dca
Make sure all exception codes are integers, fixes #1393
2019-11-12 20:38:27 +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
65f1f304d4
Add forwarding of formatter functions to nested handlers in Sampling, Filter and FingersCrossed handlers, and fix handling of callable factory handler config, fixes #1386 , closes #1387
2019-11-11 18:21:38 +01:00
Garrick Lam
b271cd4294
Don't even try to attempt normalizing iterators or generators in context
...
Iterators and Generators may not be rewindable, so foreach is not safe
to use on them.
Iterators and especially Generators may trigger irreversible actions on
calling next(), so iterating over all values can potentially cause harm,
e.g. imagine an iterator over a set of HTTP POST requests that are sent
when the next value is requested . The only sufficiently safe thing to
iterate and include here are primitive arrays.
2019-11-08 10:49:56 +08:00
David Prévot
c404cb3240
Fix file permission
2019-09-07 21:23:23 -10:00
Grégoire Pineau
626bde6159
Fixed forward compatibilty layer
2019-09-06 14:58:11 +02:00
Pierre Lannoy
c8b0d08ceb
Change chrome header size limit
...
Due to change in chromium header size support, the size limit enforced by the handler must be decreased.
2019-09-05 13:28:42 +02:00
Grégoire Pineau
6d76eaaf76
Backport Interface and Trait from master to 1.X
2019-09-05 11:02:35 +02:00
Gabriel Machado
0ffb4e2811
update exception message in InsightOpsHandler
2019-09-01 16:09:08 -03:00
Jordi Boggiano
2efcbcd181
Remove closure stack frames entirely from log
2019-08-30 10:24:17 +02:00
Jordi Boggiano
6688b45ebe
Normalize the way backtraces are normalized and remove args for special cases, fixes #1346
2019-08-16 13:09:47 +02:00
Jason Davis
ca3a914276
Update for compatibility with actively maintained versions of Zend Server
2019-07-12 11:57:06 -07:00
Jordi Boggiano
b0355add1d
Deprecate HipChatHandler, fixes #1271
2019-07-06 14:47:59 +02:00
Jordi Boggiano
447fb7b391
Deprecate RavenHandler, fixes #1340 , refs #1298 , refs #1331
2019-07-06 13:16:00 +02:00
Jordi Boggiano
97ea28435b
Merge pull request #1304 from dominikkukacka/feature/syslog-udp-rfc3164
...
Add possibility to use RFC3164 for udp syslog
2019-07-02 16:16:48 +02:00
yasutomog
ab7e54e7df
For when the date changes during a long process.
2019-07-02 15:54:02 +02:00
Dominik Kukacka
80e8b0d575
Add possibility to use RFC3164 for udp syslog
2019-03-22 22:49:38 +01:00
1adbed5c92
Fix create duplicate records in *GroupHandler
2019-01-25 13:06:55 +02:00
George Mponos
4e7dab4ffe
Deprecate slackbot handler
2018-12-13 19:47:06 +02:00
Robert Gust-Bardon
67c33c347e
Fix the property for restarting syscalls ( #1251 )
...
Credit goes to @gmponos for reporting the problem.
2018-12-11 03:47:31 -05:00
Jordi Boggiano
a335f6f1a5
Fix tests for TestHandler reset support
2018-11-30 08:43:17 +01:00
George Mponos
9ba4f22832
Reset test handler
2018-11-17 20:30:52 +02: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
712c5dacf6
Make static method static
2018-11-04 19:34:52 +01:00
Jordi Boggiano
ceebd568a2
Remove getClass func from Registry as it was moved to Utils class
2018-11-04 18:41:02 +01:00
Jordi Boggiano
24dafdeb8e
Merge pull request #1117 from RGustBardon/rgb/signal-handler
...
Register signal handlers
2018-11-04 18:28:17 +01:00
Jordi Boggiano
42d84e6a8d
Move getClass method to a Utils class, refs #1190
2018-11-04 18:23:20 +01:00
Jordi Boggiano
ca3813e31f
Merge remote-tracking branch 'nicolas-grekas/anon' into 1.x
2018-11-04 18:00:46 +01:00
Jordi Boggiano
531d05a802
Merge branch '1.x' into resetable
2018-11-04 17:43:01 +01:00
Jordi Boggiano
d64fd101b7
Merge pull request #1188 from nicolas-grekas/raven-url
...
Update Raven client package URL
2018-11-04 17:24:41 +01:00
Matt K
dd144f7fa2
Added ability to pass in host parameter for LogEntriesHandler, closes #1174 , fixes #1173
2018-11-04 17:16:31 +01:00
Ramil Valitov
e11012dfde
[fix] change private vars to protected
2018-11-04 17:14:32 +01:00
Jordi Boggiano
916b034b2b
Add support for passing sentry contexts through monolog context or extra, closes #1214
2018-11-04 17:14:32 +01:00
Nicolas Grekas
db8130ce83
Add ProcessorInterface, an optional one to allow labelling Monolog processors
2018-10-12 12:14:11 -07:00
Nicolas Grekas
9117a6c747
Fix displaying anonymous classes
2018-09-24 20:18:56 +02:00
Nicolas Grekas
bff2c8488e
Update Raven client package URL
2018-08-09 08:21:24 +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
Robert Gust-Bardon
37b587687d
Move POSIX signal handling to SignalHandler*
...
Suggested by Helmut Hummel (@helhum).
2018-07-01 23:42:41 -05:00
Jordi Boggiano
c465e11445
Clarify NewRelicHandler requirements, closes #1123
2018-06-19 09:22:34 +02:00
Jordi Boggiano
ee10777821
Fix hipchat dropping messages, fixes #1116
2018-06-18 17:58:11 +02:00