angeljqv
efab5aabaf
Fix PHP 8.5 __sleep deprecation ( #1997 )
...
This patch breaks any implementation of __sleep in child classes/user handlers. Should be warned in the release notes.
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be >
2025-10-24 10:02:31 +02:00
greggebura
f049cfdcda
Fix issue https://github.com/Seldaek/monolog/issues/1984 ( #1999 )
2025-10-24 09:28:01 +02:00
angeljqv
095bf11b27
Normalize DIRECTORY_SEPARATOR on file traces(exceptions) ( #1980 )
2025-10-23 22:02:18 +02:00
Dawid Nowak
6b44f0a064
TelegramBotHandler: skipping messages containing only whitespace ( #1992 )
...
#fixes https://github.com/Seldaek/monolog/issues/1991
2025-10-23 21:22:22 +02:00
Dawid Nowak
846f30698a
TelegramBotHandler: three dots replacement… ( #1993 )
...
`…` instead of `...` makes the truncation part of the message 2 characters shorter, allowing for a bit longer actual message xd
2025-10-23 21:21:29 +02:00
Jordi Boggiano
24816d98c6
Exclude all php:// prefixed URLs for inode chekcs
2025-10-23 21:20:52 +02:00
Cesar Garcia
282b43c996
Add handling of inode changes to reopen files in StreamHandler ( #1963 )
2025-10-23 21:12:34 +02:00
Avoutic
e1d85dbd82
Add WebFramework to Framework Integrations ( #1994 )
...
Add WebFramework found at https://web-framework.com to the Framework
Integrations list in README
2025-10-23 21:06:25 +02:00
Jordi Boggiano
7fc59fd6ce
Bump cobot branch name
2025-10-23 20:59:19 +02:00
Jeremy Mikola
1297c4421b
Replace deprecated code in MongoDB classes and allow 2.0+ ( #1998 )
...
* Remove unused code path in MongoDBFormatter
Monolog already required mongodb/mongodb 1.8+ (and a related ext-mongodb version) so this code path was never used.
* Use Collection::getCollection() from mongodb/mongodb 1.21
The original selectCollection method is deprecated. Since Monolog itself requires PHP 8.1, it should be sane to rely on 1.21+, which shares the same requirement.
* Update class refs for MongoDB extension and library
* Conditionally use Collection getter by version
* Relax PHPLIB version requirement
* Use RequiresPhpExtension attribute to require ext-mongodb
* Import UTCDateTime class and revise var names
2025-10-23 20:47:46 +02:00
Jordi Boggiano
fac282e8e7
Fix build issues
2025-10-23 20:47:05 +02:00
angeljqv
62366ef23b
Avoid empty espace on empty trace ( #1979 )
2025-10-23 20:27:47 +02:00
dependabot[bot]
4b718aed6a
Bump shivammathur/setup-php from 2.32.0 to 2.35.5 ( #1996 )
...
Bumps [shivammathur/setup-php](https://github.com/shivammathur/setup-php ) from 2.32.0 to 2.35.5.
- [Release notes](https://github.com/shivammathur/setup-php/releases )
- [Commits](9e72090525...bf6b4fbd49 )
---
updated-dependencies:
- dependency-name: shivammathur/setup-php
dependency-version: 2.35.5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-23 20:26:18 +02:00
dependabot[bot]
22953fdef7
Bump cobot/couchdb-action ( #1975 )
...
Bumps [cobot/couchdb-action](https://github.com/cobot/couchdb-action ) from 7474dc7782b9f8a84d10579dd91339820b2e6b7e to eaaa17cf8baf421e7fb07e2d869f5457bb6a4de5.
- [Release notes](https://github.com/cobot/couchdb-action/releases )
- [Commits](7474dc7782...eaaa17cf8b )
---
updated-dependencies:
- dependency-name: cobot/couchdb-action
dependency-version: eaaa17cf8baf421e7fb07e2d869f5457bb6a4de5
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-23 20:26:06 +02:00
dependabot[bot]
57e66ecd78
Bump actions/checkout from 4.2.2 to 5.0.0 ( #1985 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.2.2 to 5.0.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](11bd71901b...08c6903cd8 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 5.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-23 20:25:48 +02:00
Tobias Lorenz
f04439c7a4
convert booleans to int since gelf 1.1 only supports string/number ( #1973 )
2025-10-23 20:24:05 +02:00
Jordi Boggiano
2e97231b96
Avoid collecting duplicate logs if the file cannot be locked
2025-04-03 13:44:45 +02:00
Jordi Boggiano
7ef6b74dfd
Add php8.5 build
2025-04-03 10:03:53 +02:00
Jordi Boggiano
924d85380f
Downscale logo
2025-03-25 00:29:50 +01:00
Jordi Boggiano
ede3437579
Pin GH actions
2025-03-24 13:10:21 +01:00
Jordi Boggiano
10d8574018
Update changelog
3.9.0
2025-03-24 11:02:05 +01: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
Rajmund
62946513d4
Remove deprecated setType method call in ElasticaFormatter ( #1955 )
2025-03-20 09:52:05 +01:00
Jordi Boggiano
467e764fb6
Fix gelf message formatter failing to handle context/extra numeric keys, fixes #1932
2025-03-16 14:04:36 +01:00
Markus Staab
7ca003e6ae
Rename TestCase to MonologTestCase ( #1953 )
2025-03-16 13:30:20 +01:00
Markus Staab
9d6bcfc94d
Fix build ( #1954 )
...
* Fix build
* Update phpstan-baseline.neon
* better fix
2025-03-16 13:24:42 +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
95092b0107
Fix issue in elasticaformatter
2025-03-15 14:17:09 +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
Alan Jones
353f1db2e4
Add strtolower for fromName match statement ( #1941 )
...
Changes the `fromName` method to be case-insensitive for more flexible use.
2025-03-15 14:06:02 +01:00
dependabot[bot]
548eeb3f1e
Bump supercharge/mongodb-github-action from 1.11.0 to 1.12.0 ( #1937 )
...
Bumps [supercharge/mongodb-github-action](https://github.com/supercharge/mongodb-github-action ) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/supercharge/mongodb-github-action/releases )
- [Changelog](https://github.com/supercharge/mongodb-github-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/supercharge/mongodb-github-action/compare/1.11.0...1.12.0 )
---
updated-dependencies:
- dependency-name: supercharge/mongodb-github-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-03 11:34:40 +01:00
Jun Yang Chin
d97d5e9468
Fix broken url ( #1930 )
2024-12-10 14:30:50 +01:00
Jordi Boggiano
aef6ee73a7
Update changelog
3.8.1
2024-12-05 18:15:07 +01:00
Jordi Boggiano
074503850b
Remove empty lines if a custom stack trace parser returns null, fixes #1925
2024-12-05 18:02:26 +01:00
Jordi Boggiano
595847346a
Fix gelf formatter keys to strip invalid characters, fixes #1927
2024-12-05 15:46:00 +01:00
Ruud Kamphuis
a258e4fe90
Deprecate DateTimeImmutable ( #1928 )
...
Fixes #1926
2024-12-05 15:38:02 +01:00
Jordi Boggiano
e940004193
Fix normalizeException types, fixes #1924
2024-11-17 13:30:33 +01:00
Jordi Boggiano
32e515fdc0
Merge branch '2.x'
3.8.0
2024-11-12 14:57:08 +01:00
Jordi Boggiano
5cf826f299
Update changelog
2.10.0
2024-11-12 13:43:37 +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
517e2f40a2
Fix build
2024-11-11 15:39:25 +01:00
Jonathan Plantey
5d5da57b81
Normalize call normalizeRecord if necessary ( #1906 )
...
* Normalize call normalizeRecord if necessary
* Update patch to always go through format()
* Update JsonFormatterTest.php
* Fix implementation
* Fix test expectations
* Update JsonFormatter.php
---------
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be >
2024-11-11 15:34:03 +01:00