Jordi Boggiano
884aa47a05
Fix json formatter handling of incomplete classes, fixes #1834
2024-04-15 10:56:50 +02:00
Egor Korobov
ed80d53ab2
Fix fatal error in NormalizeFormatter: method_exists(): The script tried to execute a method or access a property of an incomplete object.
...
Closes #1833
Fixes #1834
2023-10-27 14:05:53 +02:00
Luís Cobucci
e937256eee
Fix date/time field for GCP logging ( #1758 )
...
We introduced the formatter using the incorrect field, which was making GCP not to extract the correct value from the payload.
This uses the field that actually maps to the expected format.
More info: https://cloud.google.com/logging/docs/structured-logging
2023-02-04 15:38:57 +01:00
Jordi Boggiano
6a28e9d41a
Use facility additional value and not channel to be compat with existing Monolog 3 code
2022-08-20 15:05:05 +02:00
Jordi Boggiano
5eccd17dc5
Add graylog2/gelf-php 2.x support, fixes #1747
2022-08-20 14:09:11 +02:00
Pavel Bychko
320909a1d1
Fix replaceNewlines method to avoid replacing escaped backslashes, closes #1721 , fixes #1720
2022-07-22 16:05:32 +02:00
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
34635fdcf5
Add docs
2022-07-22 15:08:12 +02:00
Jordi Boggiano
6fdeea463c
Fix build
2022-07-22 15:07:44 +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
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
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
Gemma Lynn
b39a394c05
Store native BSON types as-is in the MongoDB formatter ( #1620 )
2022-03-13 21:04:53 +01:00
Jordi Boggiano
4ef5da80ad
Fix CS
2021-07-04 14:04:52 +02:00
patrickkusebauch
76639ef02b
Elastica up to 7 support
2020-12-11 10:55:38 +01:00
Jordi Boggiano
9ce0431191
Add JSON_PARTIAL_OUTPUT_ON_ERROR, closes #1515
2020-12-10 16:22:24 +01:00
Jordi Boggiano
ec146b38bd
Build tweaks
2020-12-09 23:22:08 +01:00
Jordi Boggiano
35a1e4de9b
Fix php8 build
2020-07-08 20:53:16 +02:00
James Gilliland
56a8b31e4b
Assert SoapFail can handle a structured detail
2020-05-15 12:59:17 -05:00
Gabriel Caruso
6038dcb21c
JsonFormatter: add option to ignore empty context
and extra
fields
...
Similar to efe572cb10
.
2020-05-15 13:45:36 +02:00
Jordi Boggiano
f279285232
Fix tests, invalid UTF-8 is now returning �s instead of being converted to possibly valid ISO-8559-15
2020-05-11 22:18:36 +02:00
Jordi Boggiano
a8a0dbb778
Merge branch '1.x'
2019-12-20 14:53:43 +01:00
theravel
9621075c0f
Fix JSON formatting of resource type, closes #1410
2019-12-20 14:49:27 +01:00
Jordi Boggiano
4e19f3c585
Merge branch '1.x'
2019-11-13 10:58:42 +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
0b9ee7e636
Merge branch '1.x'
2019-11-12 21:50:28 +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
9b5deda678
Merge pull request #1290 from versh23/fix-gelp-formtatter
...
use mb_ functions everywhere if possible
2019-08-30 11:20:47 +02:00
Jordi Boggiano
acf8e9e9a3
Merge branch '1.x'
2019-08-30 10:39:21 +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
Jordi Boggiano
b78de556de
Merge pull request #1359 from MarioBlazek/feature_upgrade_phpunit_to_v8
...
Upgrade PHPUnit to v8
2019-08-15 21:32:19 +02:00
Mario Blažek
d317cb97d3
Move expectException before the line where exception is thrown
2019-08-13 15:34:48 +02:00
Mario Blažek
37900f9268
Upgrade PHPUnit to v8
2019-08-12 15:20:00 +02:00
Thomas Perez
4e095f38f4
Fix error_handler return type declaration
2019-07-31 22:19:02 +02:00
vershinin_so
ada57dd4a1
use mb_ functions in GelfFormatter
2019-07-08 10:30:25 +03:00
Jordi Boggiano
326472abd1
Merge pull request #1261 from gmponos/remove_assert_internal
...
Remove assertInternalType that it is deprecated
2018-12-26 15:29:23 +01:00
George Mponos
ee350961da
Remove assertInternalType that it is deprecated
2018-12-16 23:46:26 +02:00
andyexeter
897fca0d9b
Add SoapFault exception formatting test
2018-12-15 13:56:25 +00:00
Jordi Boggiano
0ad73a526f
CS fixes
2018-12-08 18:16:32 +01:00
Jordi Boggiano
b978700c05
Merge remote-tracking branch 'akalongman/feature/elasticsearch'
2018-12-08 18:11:25 +01:00
Mponos George
daed05c3e5
Enable JSON encode pretty print ( #1236 )
2018-12-04 10:30:41 +01:00
Jordi Boggiano
bb99e4c699
Tweak const visibility, refs #1228
2018-11-29 20:09:44 +01:00
Avtandil Kikabidze
4c7795d310
Rename ElasticSearch to Elasticsearch
2018-06-27 11:48:39 +04:00
Avtandil Kikabidze
249d1dcb5f
Merge branch 'master' into feature/elasticsearch
...
# Conflicts:
# composer.json
# src/Monolog/Handler/ElasticSearchHandler.php
2018-06-24 20:43:55 +04:00
Jordi Boggiano
41b8f5ebf4
CS fixes
2018-06-18 18:53:46 +02:00
Jordi Boggiano
7346e5fe36
Merge pull request #1170 from mpdude/include_trace_for_previous
...
Include stacktraces for "previous" excpetions in LineFormatter
2018-06-18 17:57:31 +02:00
Matthias Pigulla
c04f66ed54
Include stacktraces for "previous" excpetions in LineFormatter
2018-06-18 17:41:09 +02:00