1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-31 00:40:15 +02:00

2647 Commits

Author SHA1 Message Date
Jordi Boggiano
cf0f4b3814 Handle __toString to serialize objects which are not json-serializable in JsonFormatter, fixes #1733 2022-07-22 15:27:46 +02:00
Jordi Boggiano
284482a726 More test fixes 2022-07-22 15:12:01 +02:00
Jordi Boggiano
1e6a4e106c Remove deprecated handlers from docs 2022-07-22 15:10:54 +02:00
Jordi Boggiano
34635fdcf5 Add docs 2022-07-22 15:08:12 +02:00
Jordi Boggiano
6fdeea463c Fix build 2022-07-22 15:07:44 +02:00
Jordi Boggiano
9c1fb56f6a Deprecate CubeHandler and PHPConsoleHandler which are targetting abandoned projects, fixes #1734 2022-07-22 15:00:02 +02:00
Jordi Boggiano
611ff01fa6 Skip php8.2 default build 2022-07-22 14:48:24 +02:00
Jordi Boggiano
3a1ea88ee0 Fix matrix 2022-07-22 14:47:49 +02:00
Jordi Boggiano
b3ac20ef32 Matrix update 2022-07-22 14:46:07 +02:00
Jordi Boggiano
ad09e76f97 Add php 8.2 build 2022-07-22 14:26:06 +02:00
Jordi Boggiano
c1c73b07de Update issue templates 2022-07-22 14:25:43 +02:00
erikn69
27dc1b2ef7 Fix utf8_encode deprecation (#1722) 2022-07-22 14:23:53 +02:00
Jordi Boggiano
83db4b3f81 Handle depth to avoid cases where an exception has many too many previous exceptions, fixes #1726 2022-07-22 14:18:01 +02:00
systemsolutionweb
ffc2bc2e23 Update .gitattributes, closes #1688 2022-07-22 14:12:11 +02:00
Jordi Boggiano
475bc87409 Fix issues 2022-07-22 13:33:21 +02:00
Jordi Boggiano
6cc788bdec Fix build error with lowest deps on php7.4 2022-07-22 13:25:12 +02:00
Max Ageev
af8efac0d5 Check if errorMessage contain error "File exists"
Fixes #1678, closes #1685

When we try to create directory we got error and find out that error is to the fact that directory already was created for us.
If that the case we should not throw exception as it's fine now...
If file was deleted after that it's not problem of this funtion.
2022-07-22 13:19:52 +02:00
Thomas Müller
f958fdac0f allow Predis 2.0, closes #1732 2022-07-22 13:16:54 +02:00
Jordi Boggiano
11be0a4b30 Fix phpstan errors 2022-07-22 13:15:11 +02:00
Mikhail Popov
3734f190f8 Add the ability to set or redefine attributes for messages in Rabbit. (#1724)
One of content_type, content_encoding, message_id, user_id, app_id, delivery_mode, priority, timestamp, expiration, type or reply_to, headers.

Co-authored-by: Попов Михаил <popov.mv@betcity.ru>
2022-07-22 13:08:34 +02:00
Luís Cobucci
197f534d42 Add basic support to Google Cloud Logging format (#1719)
Google Cloud Logging doesn't show the correct level log when using
JsonFormatter, making observability a bit trickier. This applies minor
tweaks to the default format, allowing log entries to be properly
represented.

There are alternative packages to this but they add fields that aren't
strictly required - also performing `debug_backtrace()` calls that are
usually not desired when in production mode.

This is a backport of https://github.com/Seldaek/monolog/pull/1690

Signed-off-by: Luís Cobucci <lcobucci@gmail.com>
2022-07-22 13:04:51 +02:00
Jordi Boggiano
5579edf28a Update changelog 2.7.0 2022-06-09 10:59:12 +02:00
henning
24e414c993 Added $datetime parameter to addRecord method to optionally log into the past/future 2022-06-09 10:49:31 +02:00
Gene Alyson Fortunado Torcende
8ac56aa42b RotatingFileHandler to maintain the correct maximum number files when using folder by date (#1671) 2022-06-09 10:41:11 +02:00
Jordi Boggiano
eac0c22ad2 Mark TestCase internal until PHPStorm handles this better, fixes #1677 2022-06-09 10:40:17 +02:00
Dmitry Menshikov
64854f09da Correct handling of E_USER_ERROR as fatal error if registerErrorHandl… (#1670)
* Correct handling of E_USER_ERROR as fatal error if registerErrorHandler is called with callPrevious, fixes #1669
2022-06-09 09:04:15 +02:00
Jordi Boggiano
9c1566a971 Add a way to disable logging loop detection, closes #1681 2022-06-08 21:51:47 +02:00
Jordi Boggiano
247918972a Update changelog 2.6.0 2022-05-10 11:36:00 +02:00
Jordi Boggiano
a5d65f6ec4 Fix infinite loops when a log handler triggers logging itself 2022-05-10 11:10:07 +02:00
Jordi Boggiano
5d43fd52d3 Allow UdpSocket to reconnect after close() 2022-05-10 10:29:15 +02:00
Lito
c709906d0a [2.X] Allow stacktraces parser on LineFormatter (#1665)
* Allow stacktraces parser on LineFormatter

* Added includeStacktraces parse tests
2022-05-09 22:37:14 +02:00
Jordi Boggiano
2a8c7dffdf Also allow for slow ES8 start 2022-05-09 00:16:47 +02:00
Jordi Boggiano
2af3276ca6 Update list of handlers 2022-05-09 00:10:39 +02:00
Jordi Boggiano
354ddc8020 Fix changelog 2022-05-08 23:49:54 +02:00
Jordi Boggiano
8f6efe928a Allow more time as elastic search sometimes is slow to boot 2022-05-08 23:49:25 +02:00
Jordi Boggiano
bd24765917 ElasticSearch v8 support (#1662)
* ElasticSearch v8 support
* CI updates

Co-authored-by: Thomas Müller <mimmi20@live.de>
2022-05-08 22:23:46 +02:00
Jordi Boggiano
4c7a12b026 Add SymfonyMailerHandler, deprecate SwiftMailerHandler (#1663) 2022-05-07 13:05:55 +02:00
Jordi Boggiano
4192345e26 Update changelog 2.5.0 2022-04-08 17:43:54 +02:00
Jordi Boggiano
4c43f12548 Link attribute file again 2022-04-08 17:32:35 +02:00
Jordi Boggiano
508df120fa Make AsMonologProcessor compatible with PHP 7.2 2022-04-08 17:32:03 +02:00
Jordi Boggiano
f2f66cd480 Fix tests 2022-03-18 10:48:03 +01:00
Jordi Boggiano
77b71e0baf Fix syntax 2022-03-18 10:43:11 +01:00
jszczypk
f0e0dbaa52 added information about call type from debug_backtrace (#1612)
$record['extra']['callType'] will contain current call type: "->" or "::" depending if it was normal or static method call.
Gives possibility to nicely format messages "{$record['extra']['class']}{$record['extra']['callType']}{$record['extra']['function']} ..."
2022-03-18 10:31:44 +01:00
Marko Vušak
0a023ffb23 Calculate exception message according to PHP version (#1644) 2022-03-18 09:47:05 +01:00
Jordi Boggiano
cb3675ee15 Try fixing ci 2022-03-14 13:51:26 +01:00
Jordi Boggiano
affa44f7c8 Fix formatting issue 2022-03-14 13:45:46 +01:00
Jordi Boggiano
d7fd745062 Update changelog 2.4.0 2022-03-14 13:44:37 +01:00
Jordi Boggiano
330b80ceb7 One day I will learn 2022-03-14 13:41:10 +01:00
Jordi Boggiano
f1f2e3e37c Fix fix 2022-03-14 13:39:42 +01:00
Jordi Boggiano
b886d70a35 Fixes 2022-03-14 13:35:56 +01:00