Markus Staab
7ca003e6ae
Rename TestCase to MonologTestCase ( #1953 )
2025-03-16 13:30:20 +01:00
Rajmund
45b5e0e33e
Change datetime format from ISO 8601 to ATOM in ElasticsearchFormatter and related tests ( #1942 )
2025-03-15 14:23:08 +01:00
Andrii Shevchenko
c8bbe52af5
added possibility to set child handler after instantiation ( #1946 )
2025-03-15 14:19:21 +01:00
Jeff W
9cfd246982
Add a mail() hook to NativeMailHandler. ( #1948 )
...
Allows subclassing NativeMailHandler so that the call to mail()
can be intercepted and replaced in cases where additional processing
needs to happen.
Tests are mostly updated to use this method to test sent messages,
but one test is added to make sure that everything gets passed through
intact.
Co-authored-by: JDW <xs@jdw.sx >
2025-03-15 14:17:54 +01:00
Jordi Boggiano
24a1110715
Merge branch '2.x'
2024-11-11 20:15:35 +01:00
Jordi Boggiano
0779fb91e5
Close and reopen file handles if a write fails ( #1882 )
...
* Close file handle after each write, refs #1862 , refs #1860 , refs #1634
* Modify patch to retry writes once if they fail, then throw if not
* Fix php7.2 build
2024-11-11 20:08:58 +01:00
Jordi Boggiano
f43e3d5637
Upgrade phpstan, phpunit ( #1923 )
...
* Upgrade phpstan, phpunit
* Fix phpunit deprecation
* Fix hg tests
* Fix php-console tests
* Fix phpunit on 8.1
* Bump phpconsole
2024-11-11 15:21:55 +01:00
Jordi Boggiano
7b5a792204
Restore rollbar test suite
2024-11-11 10:02:18 +01:00
Jordi Boggiano
07cd08e0e4
Fix CS
2024-06-28 10:48:40 +02:00
Christoph Dreis
3ba77d1d39
Use fully-qualified name for native functions ( #1887 )
2024-06-28 10:45:25 +02:00
Jordi Boggiano
613eaea74b
Fix group annotations
2024-04-12 17:30:46 +02:00
Jordi Boggiano
b127292ee0
Fix phpunit deprecations
2024-04-12 17:26:33 +02:00
Witold Wasiczko
35dab43e3c
Include extra in context in PsrHandler ( #1852 )
2024-04-12 11:00:56 +02:00
Cosmin Ardeleanu
b0f4bf7eb7
Fix LogRecord "extra" data leaking between handlers ( #1819 )
...
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be >
2023-10-27 16:54:39 +02:00
Grégoire Pineau
f54263935d
Skip mongodb extension if extension is not installed ( #1825 )
2023-10-27 14:50:45 +02:00
Samson Endale
1fd8e8c2c7
Add TelegramBotHandler topics support ( #1802 )
2023-06-20 16:42:38 +02:00
chris
8561130215
Upgrade to phpunit 10 ( #1806 )
...
Co-authored-by: Christopher Georg <christopher.georg@sr-travel.de >
2023-06-20 15:56:11 +02:00
Pitchaya Boonsarngsuk
06276fcf77
FingersCrossedHandler fix passthruLevel checking ( Fixes #1800 ) ( #1801 )
2023-06-20 14:19:37 +02:00
Identei
f58e4f47b3
Add an option to set the op_type for the ElasticsearchHandler ( #1766 )
...
Co-authored-by: Identei <>
2023-02-04 21:40:17 +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
Jordi Boggiano
8471abd5ef
Merge branch '2.x'
2022-08-02 15:04:49 +03:00
Jordi Boggiano
132eace138
Fix build
2022-08-02 15:03:47 +03:00
Jordi Boggiano
60d9aab60e
Fix tests
2022-07-22 20:55:12 +02:00
Jordi Boggiano
4e131c13ac
Merge branch '2.x'
2022-07-22 20:49:57 +02:00
Jordi Boggiano
4b4fad9476
Fix serialization to include private properties, fixes #1727 , fixes phpro/grumphp#1020
2022-07-22 20:49:07 +02:00
Jordi Boggiano
f7dfa00f08
Add Level::toRFC5424Level method and restore BC to Syslog handlers (broken in #1689 )
2022-07-22 17:04:34 +02:00
picass0
a7e5beda57
finishing Syslog formatter ( #1689 )
...
* feat: Syslog formatter
* feat: Syslog formatter, app name
* update syslogFormatter
* Remove legacy syntax
Co-authored-by: Dalibor Karlović <dalibor.karlovic@sigwin.hr >
Co-authored-by: Renat Gabdullin <renatobyj@gmail.com >
2022-07-22 16:17:53 +02:00
Jordi Boggiano
7684fae8fa
Merge branch '2.x'
2022-07-22 15:51:15 +02:00
erikn69
27dc1b2ef7
Fix utf8_encode deprecation ( #1722 )
2022-07-22 14:23:53 +02:00
Jordi Boggiano
0ddba7342f
Merge branch '2.x' into main
2022-06-09 11:04:38 +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
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
5d43fd52d3
Allow UdpSocket to reconnect after close()
2022-05-10 10:29:15 +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
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