1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

549 Commits

Author SHA1 Message Date
Dino Korah
a05c1a9732 Fix broken unit tests 2020-08-04 12:25:34 +01:00
Jordi Boggiano
c3a05db90c Fix unique_id in WebProcessor not being disableable, fixes #1470 2020-07-08 21:01:20 +02:00
Jordi Boggiano
b5260af0d1 Also remove deprecation warnings when running outside of travis on php 7.4 2020-05-22 09:30:27 +02:00
Jordi Boggiano
fa4a173f69 Fix 5.3 syntax 2020-05-21 16:56:55 +02:00
Jordi Boggiano
c50950d79e Canonicalize paths when constructing RotatingFileHandler/StreamHandler, fixes #1326 2020-05-21 16:54:57 +02:00
Jordi Boggiano
acd3173c4a Fix SoapFault when detail is nested object, fixes #1431, refs #1462 2020-05-21 16:39:23 +02:00
theravel
9621075c0f Fix JSON formatting of resource type, closes #1410 2019-12-20 14:49:27 +01:00
David Maicher
525d29847a FilterHandler: fix handle empty batch of filtered records 2019-11-15 13:07:02 +01:00
Jordi Boggiano
f97cc755af Fix 5.3/5.4 builds 2019-11-12 22:28:59 +01:00
Jordi Boggiano
05f6ed7205 Fix php 5.3 syntax 2019-11-12 22:10:50 +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
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
190aa65aac Fix chromephp tests 2019-09-05 14:33:55 +02: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
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
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
Jordi Boggiano
a335f6f1a5 Fix tests for TestHandler reset support 2018-11-30 08:43:17 +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
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
Robert Gust-Bardon
23fd84fec0 Wait for children that are being tested 2018-06-18 11:25:41 -05:00
Robert Gust-Bardon
25c427a0e4 Add a missing @dataProvider 2018-06-18 11:17:10 -05:00
Jordi Boggiano
3e92b08956 Avoid information leaks through call_user_func arguments, fixes #1138 2018-06-18 17:21:54 +02:00
Petter Blomberg
f753c68a73 Make context optional in hasRecord to not break backwards compatibility 2018-06-18 15:52:04 +02:00
Petter Blomberg
b381a973bc Make TestHandler::hasRecord assert context, not only message 2018-06-18 15:50:12 +02:00
Robert Gust-Bardon
ad5b8f41b0 Merge branch '1.x' into rgb/signal-handler 2018-06-18 08:18:18 -05:00
Klemen Bratec
e8db808dd3 Allow setting stream chunk size in SocketHandler (#1129) 2018-06-18 11:31:46 +02:00
Jordi Boggiano
00aca28c8b Fix SlackRecord normalization of fields, closes #1078 2018-06-17 18:03:59 +02:00
Andrew Berry
0d993d84d1 Normalization of arrays containing self references (#1050)
Backport normalization fix from master to 1.x
2018-06-17 17:27:33 +02:00
Jordi Boggiano
a6be840ff8 Merge pull request #1052 from gmsantos/1.x
Include InsightOps handler
2018-06-11 17:30:04 +02:00
Jordi Boggiano
5de973cd33 More 5.3 fixes 2018-06-09 10:23:30 +02:00
Jordi Boggiano
06f7bfb0ee Fix 5.3 build 2018-06-08 23:41:14 +02:00
Minh-Quan TRAN
ada5d30511 If context has exactly 1000 items, do not truncate 2018-06-08 22:18:08 +02:00
Alban Kora
5f8783686e Fixing file rotation when similar files are present 2018-06-08 22:10:08 +02:00
Jordi Boggiano
4814446331 Merge remote-tracking branch 'vincepare/1.x' into 1.x 2018-06-08 20:44:28 +02:00
Chris Wilkinson
3035d4a251 Fix WhatFailureGroupHandler::handleBatch when the handler has processors 2018-06-08 20:39:17 +02:00
George Mponos
68e39bd84f Add a record with an object as context 2018-06-07 18:28:45 +02:00
tnucera
678693e5ef Add context to fluentd formatter 2018-06-07 17:47:43 +02:00
Robert Gust-Bardon
cf979844dc Register signal handlers 2018-02-22 11:16:36 -06:00
gmsantos
81db432c02 Include insightops handler 2017-09-10 00:13:37 -03:00
Vincent Paré
207c91699e Custom exception handler (#500)
Add custom exception handler to let the user change the default
behavior when Monolog raise an exception while logging a record.
2017-07-14 12:18:44 +02:00
Jordi Boggiano
188a46836b Fix DyanmoDbHandler test suite 2017-06-19 02:06:55 +02:00
Jordi Boggiano
2ea3d95ca2 Make sure this works on any hostname 2017-06-19 02:00:36 +02:00
Alex Rock Ancelet
d84af8db3c Fix SwiftMailerHandler support for Swiftmailer 6.0+ 2017-06-19 01:59:54 +02:00
Douglas Reith
765d225554 Support HeadlessChrome (#966)
* Support HeadlessChrome
2017-06-19 01:47:42 +02:00
Remon van de Kamp
deb0ea4ee7 Use first day/first month for date calculations in RotatingFileHandlerTest (#963)
When making the calculations for the filename of the current month using
date('d') does not work because you may run into the situation where you run
the tests on a day in a month that does not exist in the previous month,
for example March 30th. As there is no February 30th, PHP will skip ahead
to March, and the filename for the "previous" month will incorrectly be
"2017-03" instead of the expected "2017-02". Using the first day of the
month instead of the current day of the month solves this problem.

For consistency we now also use the first month of each year for calculations
regarding years even if this is not necessary, it would break symmetry
if we don't, plus it makes it clear that the value is not relevant in the
calculation.
2017-06-19 01:33:57 +02:00