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

2808 Commits

Author SHA1 Message Date
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
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
7af6f41cff Fix build 2024-11-11 14:20:19 +01:00
Jordi Boggiano
b92508d0d7 Fix build 2024-11-11 14:06:20 +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
5e3d583b22 Clean up CI 2024-11-11 10:19:02 +01:00
Jordi Boggiano
7b5a792204 Restore rollbar test suite 2024-11-11 10:02:18 +01:00
Jordi Boggiano
55a7b339f2 Fix phpstan 2024-11-11 09:52:41 +01:00
Jordi Boggiano
d5b588a306 Fix phpstan build 2024-11-09 14:41:45 +01:00
Steven Lewis
e5b3586456 Fix PHP 8.4 E_STRICT deprecation notices (#1921) 2024-11-09 14:27:28 +01:00
Jordi Boggiano
e266d7d914 Add support for elastica 8, fixes #1917 2024-11-09 14:16:37 +01:00
Nikola Mijajlović
67cc5502a3 Remove Slim framework integration suggestion (#1914)
The suggested library (https://github.com/Flynsarmy/Slim-Monolog) only supports Slim 2, which has not been maintained for a long time. Monolog can be integrated with Slim v4 directly, without the need for any additional libraries.
2024-11-09 14:15:43 +01:00
Jordi Boggiano
11075bc016 Add baseline for php8.2 2024-10-25 22:44:10 +02: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
Luboš Hubáček
3327c29d37 Make IntrospectionProcessor extendable (#1899) 2024-08-27 09:51:08 +02:00
dependabot[bot]
5c41cf7a24 Bump ramsey/composer-install from 2 to 3 (#1908)
Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 2 to 3.
- [Release notes](https://github.com/ramsey/composer-install/releases)
- [Commits](https://github.com/ramsey/composer-install/compare/v2...v3)

---
updated-dependencies:
- dependency-name: ramsey/composer-install
  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>
2024-08-27 09:50:06 +02:00
dependabot[bot]
d42b711aa7 Bump supercharge/mongodb-github-action from 1.10.0 to 1.11.0 (#1907)
Bumps [supercharge/mongodb-github-action](https://github.com/supercharge/mongodb-github-action) from 1.10.0 to 1.11.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.10.0...1.11.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>
2024-08-27 09:49:59 +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
6772a39c03 Merge branch '2.x' 2024-08-27 09:42:11 +02:00
Jordi Boggiano
23560e32b1 Update CI (#1909)
* Update CI

* Fix deprecation warning

* Fix types
2024-08-27 09:31:25 +02:00
Jordi Boggiano
e0cd5d576c Enable dependabot 2024-08-22 16:13:28 +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
Jordi Boggiano
f4393b648b Update changelog 3.7.0 2024-06-28 11:40:51 +02:00
javaDeveloperKid
f836e01659 Update example in RedisHandler (#1894) 2024-06-28 11:06:36 +02:00
Thomas Portelange
4112a1880b add formatted key in ArrayAccess for LogRecord (#1886)
since $record['formatted'] is a legal syntax, it should not be flagged by static analysis tools like phpstan
2024-06-28 11:05:04 +02:00
Jordi Boggiano
b56faa67a0 Expand code a bit 2024-06-28 11:01:50 +02:00
Jordi Boggiano
4bfbba8de0 Fix build 2024-06-28 11:01:44 +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
Jonathan Campbell
4e03d25f6d Fix IntrospectionProcessor tests that were not validating the code under test (#1896)
Three tests in IntrospectionProcessorTest (testLevelTooLow, testLevelEqual, testLevelHigher) aren't actually testing anything. Because `$expected = $input` is a reference, the changes made to `$expected['extra']` are made to $input and carried forward to $actual. You can demonstrate this by adding a `return $record` at the immediate start of `InstrospectionProcessor::__invoke` -- the tests still pass despite bypassing all the code.
2024-06-28 10:41:10 +02:00
Jordi Boggiano
47e301d3e2 Also add setBasePath to NormalizerFormatter/JsonFormatter 2024-06-28 10:39:13 +02:00
Jordi Boggiano
a4471eb05b Merge branch '2.x' 2024-04-15 11:22:23 +02:00
Jordi Boggiano
884aa47a05 Fix json formatter handling of incomplete classes, fixes #1834 2024-04-15 10:56:50 +02:00
Jordi Boggiano
233e0b27a0 Ensure private error handler does not cause problems, fixes #1866 2024-04-15 10:17:33 +02:00
Jordi Boggiano
4b18b21a55 Update changelog 3.6.0 2024-04-12 23:02:21 +02:00
Jordi Boggiano
a0860dd076 Merge branch '2.x' 2024-04-12 22:54:39 +02:00
Jordi Boggiano
a30bfe2e14 Update changelog 2.9.3 2024-04-12 22:52:51 +02:00
Jordi Boggiano
84638a5926 Add test for setBasePath functionality, refs #1873 2024-04-12 22:41:20 +02:00