1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-30 08:21:05 +02:00

822 Commits

Author SHA1 Message Date
Jordi Boggiano
b3451b008b Merge branch '2.x' into main 2022-05-10 11:53:02 +02:00
Jordi Boggiano
1dacc790b9 Remove LevelName enum in favor of a Level::getName method, fixes #1667 (#1668) 2022-05-10 11:15:16 +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
Jan-Eric Ortgies
709cb93aa6 replace deprecated method calls in GelfMessageFormatter (#1664)
- the getter/setter methods for file, level and facility are deprecated in gelf v1.1
- add those fields as additional instead, as suggested in the gelf spec (https://docs.graylog.org/v1/docs/gelf#gelf-payload-specification)
- update tests to reflect changes
2022-05-08 23:13:55 +02:00
Jordi Boggiano
acc142c2b7 Drop prophecy usage 2022-05-08 23:13:26 +02:00
Jordi Boggiano
8a356498d9 Fix ES8 build 2022-05-08 23:08:23 +02:00
Jordi Boggiano
1181473f4b Merge branch '2.x' into main 2022-05-08 23:03:49 +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
bd5968a567 Add missing types to constructor args 2022-04-24 11:17:17 +02:00
Jordi Boggiano
6627c092d8 Add phpstan strict rules and deprecation rules, fix all related issues 2022-04-24 11:08:10 +02:00
Jordi Boggiano
1c80bce4ad Fix error handler to not receive $context anymore as php8 dropped that 2022-04-22 21:32:10 +02:00
Jordi Boggiano
0dac87975c Add property types to all properties where possible 2022-04-21 21:58:32 +02:00
Jordi Boggiano
7952a83e0c Move phpdoc to native types 2022-04-20 09:21:58 +02:00
Jordi Boggiano
2695fa86cd CI fixes 2022-04-19 22:16:53 +02:00
Jordi Boggiano
2d006a8472 Convert level/levelName to enums (#1656) 2022-04-19 21:49:03 +02:00
Jordi Boggiano
248673e858 Remove at matcher 2022-03-21 14:23:30 +01:00
Jordi Boggiano
a3ba6445a4 Cleanups 2022-03-21 14:18:56 +01:00
Jordi Boggiano
5eb9b8ed93 Code cleanups 2022-03-21 14:18:54 +01:00
Jordi Boggiano
b586dbe8e6 Remove SwiftMailerHandler 2022-03-21 14:18:54 +01:00
Jordi Boggiano
400effdd45 Fix some issues, bump phpunit version 2022-03-21 14:18:54 +01:00
Jordi Boggiano
22c8b19358 Add LogRecord class, drop PHP <8.1 2022-03-21 14:18:53 +01:00
Jordi Boggiano
f2f66cd480 Fix tests 2022-03-18 10:48:03 +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
c02d86ffb2 Include record message/context/extra data when throwing an exception because the log cannot be opened, fixes #1630 2022-03-14 13:34:54 +01:00
Gemma Lynn
b39a394c05 Store native BSON types as-is in the MongoDB formatter (#1620) 2022-03-13 21:04:53 +01:00
Bei Xiao
f9a8e87563 SlackWebhookHandler: use footer for username & footer_icon for userIcon (#1617)
* Use footer for username & footer_icon for userIcon

* Update test case for SlackWebhookHandler
2022-03-13 20:29:18 +01:00
Thomas Calvet
8c58abad9e Add AsMonologProcessor attribute (#1637) 2022-03-06 13:08:33 +01:00
Jordi Boggiano
a4e10e8e9e Merge pull request #1587 from nicolas-grekas/psr-log2
Allow psr/log 2.0
2021-09-14 15:21:42 +02:00
Jordi Boggiano
70fe092867 Simplify memoryIniValueToBytes, tweak code to use less memory overall 2021-09-14 15:01:06 +02:00
jcm
0b22036ab6 Add method in Utils to convert memory values from php_ini into bytes, and use lower amount of chunk size based on memory limit 2021-09-14 14:57:16 +02:00
Nicolas Grekas
203bb1b6f5 Fix CI to allow psr/log v2 2021-09-13 14:20:06 +02:00
Juan Morales
82ab6a5f4f Fixes php8 non-backward compatible changes (#1568)
* Utils method added to resolve PCRE error messages properly
2021-07-23 09:16:39 +02:00
Fabien Villepinte
63e195046c Fix Utils::getClass() with PHP8 (#1563) 2021-07-14 12:57:59 +02:00
Jordi Boggiano
19542ed8ef Normalize @inheritDoc tags, refs #1557 2021-07-08 15:23:09 +02:00
Jordi Boggiano
4ef5da80ad Fix CS 2021-07-04 14:04:52 +02:00
Jordi Boggiano
01d104aa78 Add Record/Level/LevelName type aliases and improve phpstan type coverage to level 6 2021-07-04 14:04:52 +02:00
Victor Pryazhnikov
812d63b171 Fix of incorrect DynamoDB mock creation
addMethods([]) breaks the methods configured at onlyMethods() call
2021-04-18 21:33:01 +03:00
Victor Pryazhnikov
c7a5ecca6c Fix of DynamoDbClient::formatAttributes
Looks like formatAttributes() was removed before v3,
so switching to method existence check instead of version check
2021-04-04 21:34:05 +03:00
Victor Pryazhnikov
2bc1351c1e Fix of SyslogUdpHandler mock creation
'datetime' value inside of getRecordWithMessage() result is enough,
getDateTime() method is missing & not being used
2021-02-27 15:55:32 +03:00
Victor Pryazhnikov
240a159d44 Fix of PhpAmqpLib\Channel\AMQPChannel mock creation
__destruct was removed in v2.5.0, but version check is impossible
(\PhpAmqpLib\Package::VERSION was introduced in v2.11.1)
2021-02-27 15:36:32 +03:00
Victor Pryazhnikov
67294a3a5f Fix of Predis\Client mock creation
Predis\Client uses __call method to process commands (rPush, lTrim),
getPartialMock() doesn't work with addMethods()
2021-02-27 15:18:06 +03:00
Victor Pryazhnikov
227343f20b Fix of absent formatAttributes method issue 2021-02-27 15:02:13 +03:00
Victor Pryazhnikov
cdba0c5693 Deprecated setMethods() usages moving to onlyMethods() 2021-02-27 14:47:59 +03:00
Marc van der Meulen
7066e39078 When we reset the FilterHandler we should call the handler we are wrapping 2021-01-15 17:25:19 +01:00
patrickkusebauch
79d12135dd Fixed new Url 2020-12-12 22:21:42 +01:00
patrickkusebauch
76639ef02b Elastica up to 7 support 2020-12-11 10:55:38 +01:00