Jordi Boggiano
fac282e8e7
Fix build issues
2025-10-23 20:47:05 +02:00
Jordi Boggiano
2e97231b96
Avoid collecting duplicate logs if the file cannot be locked
2025-04-03 13:44:45 +02:00
Rajmund
2b8777dfb4
SendGrid V3 API ( #1952 )
...
Fixed SendGridHandler to use the new V3 API as the V2 one has been sunset. This requires configuring a new API key.
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be >
2025-03-20 10:27:50 +01:00
Rajmund
5d0da0a798
Updating while loops to have boolean conditions. ( #1956 )
...
* Updating while loops to have boolean conditions.
* Refactor exception normalization logic in LineFormatter for improved readability and efficiency
* Update retry logic in Curl Util to use retry count .
* Skip the if now that we check before starting the loop
---------
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be >
2025-03-20 09:59:33 +01:00
Markus Staab
9d6bcfc94d
Fix build ( #1954 )
...
* Fix build
* Update phpstan-baseline.neon
* better fix
2025-03-16 13:24:42 +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
Elan Ruusamäe
3606a19b6e
Fix ErrorLogHandler type int: $messageType accepts only SAPI and OS ( #1933 )
2025-03-15 14:07:26 +01:00
Ruud Kamphuis
a258e4fe90
Deprecate DateTimeImmutable ( #1928 )
...
Fixes #1926
2024-12-05 15:38:02 +01:00
Jordi Boggiano
7729f32de0
Merge branch '2.x'
2024-11-11 22:36:03 +01:00
Jordi Boggiano
d2d0341604
Fix patch
2024-11-11 22:29:51 +01:00
Jordi Boggiano
d57089bf87
Fix RotatingFileHandler bug where rotation could sometimes not happen correctly, fixes #1905
2024-11-11 22:15:37 +01:00
Jordi Boggiano
0c7366171f
Auto-close streams when reset() is called, fixes #1862
2024-11-11 20:20:56 +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
Pedro Peixoto
8ae546b2b9
Allow the user to define a custom mode when fopen-ing a log file ( #1913 )
...
* Allow the user to define a custom mode when `fopen`-ing a log file
* Undo unnecessary changes
---------
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be >
2024-11-11 10:26:15 +01:00
Jordi Boggiano
7b5a792204
Restore rollbar test suite
2024-11-11 10:02:18 +01:00
Jordi Boggiano
d5b588a306
Fix phpstan build
2024-11-09 14:41:45 +01:00
Jordi Boggiano
e266d7d914
Add support for elastica 8, fixes #1917
2024-11-09 14:16:37 +01:00
Jordi Boggiano
b4a48dd3ee
Fix phpstan build
2024-10-25 22:15:10 +02:00
InvisibleSmiley
63fdb125ab
Remove pointless json_encode availability checks ( #1919 )
...
Co-authored-by: Jens Hatlak <jens.hatlak@check24.de >
2024-10-25 21:45:46 +02:00
Eric Emmrich
2497a896b1
ProcessHandler: Make timeout of stream_select() configurable ( #1916 )
...
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be >
2024-10-23 15:31:42 +02:00
Jordi Boggiano
a4a5a06501
Fix deprecations
2024-08-27 09:45:47 +02:00
Kirill Nesmeyanov
5c45513614
Fix PHP 8.4 deprecation notices ( #1903 )
2024-08-27 09:43:15 +02:00
Jordi Boggiano
23560e32b1
Update CI ( #1909 )
...
* Update CI
* Fix deprecation warning
* Fix types
2024-08-27 09:31:25 +02:00
Sébastien Alfaiate
b914d02a9d
Replace goo.gl URL ( #1904 )
...
Google URL Shortener links will no longer be available:
https://developers.googleblog.com/en/google-url-shortener-links-will-no-longer-be-available/
2024-08-17 10:11:50 +02:00
javaDeveloperKid
f836e01659
Update example in RedisHandler ( #1894 )
2024-06-28 11:06:36 +02: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
a4471eb05b
Merge branch '2.x'
2024-04-15 11:22:23 +02:00
Jordi Boggiano
233e0b27a0
Ensure private error handler does not cause problems, fixes #1866
2024-04-15 10:17:33 +02:00
cracksalad
c48c642b9a
[ #1878 ] User definable duplication for DeduplicationHandler ( #1879 )
2024-04-12 17:37:06 +02:00
Jordi Boggiano
5b990255a3
Remove curlopt safe upload which is not needed since php5.6
2024-04-12 15:41:24 +02:00
Jordi Boggiano
cdec3b52ad
Merge branch '2.x'
2024-04-12 15:36:24 +02:00
Sebastian Muszynski
814ea500f8
Convert GelfMessage into string required by createAmqpMessage ( #1869 )
...
* Convert GelfMessage into string required by createAmqpMessage
* Convert object on write() too
2024-04-12 13:51:55 +02:00
Witold Wasiczko
35dab43e3c
Include extra in context in PsrHandler ( #1852 )
2024-04-12 11:00:56 +02:00
Christian Flothmann
b0a861a9cc
explicitly mark nullable parameters as nullable ( #1874 )
2024-04-12 09:48:58 +02:00
Jordi Boggiano
c412c2e0d6
Fix case of Redis::lTrim call
2023-11-10 13:29:35 +01: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
Jordi Boggiano
70f6ca05b9
Merge branch '2.x'
2023-10-27 15:26:39 +02:00
Chimit
5be54eaa1e
Clarified instructions about chat ID for Telegram ( #1840 )
2023-10-27 14:07:05 +02:00
omerimzali
253d2f1350
Loggly handler loglevel comparison statement fixed ( #1841 )
...
Co-authored-by: omerimzali <omer.imzali@gmail.com >
2023-10-27 13:41:44 +02:00
Nicolas Grekas
9546d94bdc
Use @return $this where applicable ( #1828 )
2023-08-03 14:04:37 +02:00
李铭昕
1b93764d15
Fixed bug that restore_error_handler will not be executed if there is an exception before restore should happen ( #1815 )
2023-06-22 08:44:58 +02:00
liutao
8c70660c17
Fix support of yearly and monthly rotation log file to rotate only once a month/year ( #1805 )
...
Co-authored-by: liutao <liutao@ifun.com >
Co-authored-by: liutao02 <liutao02@xiaoduotech.com >
2023-06-21 10:37:30 +02:00
Samson Endale
1fd8e8c2c7
Add TelegramBotHandler topics support ( #1802 )
2023-06-20 16:42:38 +02:00
Jordi Boggiano
50409b8169
openlog never fails on php8.2 so remove check
2023-06-20 15:48:38 +02:00
Jordi Boggiano
8941155d2f
Fix phpstan errors, update baseline
2023-06-20 14:43:04 +02:00
Pitchaya Boonsarngsuk
06276fcf77
FingersCrossedHandler fix passthruLevel checking ( Fixes #1800 ) ( #1801 )
2023-06-20 14:19:37 +02:00