1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-20 03:41:29 +02:00
Commit Graph

36 Commits

Author SHA1 Message Date
Markus Staab
7ca003e6ae Rename TestCase to MonologTestCase (#1953) 2025-03-16 13:30:20 +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
Christoph Dreis
3ba77d1d39 Use fully-qualified name for native functions (#1887) 2024-06-28 10:45:25 +02:00
Jordi Boggiano
b127292ee0 Fix phpunit deprecations 2024-04-12 17:26:33 +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
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
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
a3ba6445a4 Cleanups 2022-03-21 14:18:56 +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
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
Thomas Praxl
764601c606 Expect and document a more concrete exception type
As was proposed during review.
2019-11-25 12:01:34 +01:00
Thomas Praxl
3dcb1919a3 Fix misleading @throws tag in StreamHandler doc
The `\Exception` for non-existing and not creatable paths is thrown earliest on first write.
Not during StreamHandler instantiation, as claimed by the constructor's `@throws` tag.
2019-11-15 09:07:02 +01:00
Mario Blažek
37900f9268 Upgrade PHPUnit to v8 2019-08-12 15:20:00 +02:00
Jordi Boggiano
21dde4dedb Move to strict mode and fix tests 2016-05-27 13:44:00 +01:00
Jordi Boggiano
af7c0a7bda Make handlers more serializable by default by having them close() before sleeping, fixes #365 2016-05-26 21:13:52 +01:00
Jordi Boggiano
f200e79879 CS fixes 2016-05-26 20:54:06 +01:00
Jordi Boggiano
d7b415c2c8 Make TestCase class available to dependents to help with testing 2016-05-20 20:09:02 +01:00
Jordi Boggiano
a7ade9d68f Only close handles that have been opened by the StreamHandler, fixes #764 2016-04-10 13:01:10 +01:00
Jordi Boggiano
b09370b13a Skip invalid windows tests 2015-07-12 11:24:20 +01:00
Dominik Zogg
fe12c5278f stream handler creates a directory if its possible 2015-07-05 12:09:12 +00:00
Jordi Boggiano
b738a6c04c CS fixes 2014-10-17 19:12:45 +01:00
Theo Kouzelis
9752eb9bf3 Removed unnecessary test code and corrected doc style 2014-09-20 12:05:16 +01:00
Theo Kouzelis
b838c31b21 Stream Handler Throw Invalid Argument If Not String Or Resource 2014-09-17 21:35:11 +01:00
Ian Babrou
6c799b3976 support for log file locking 2014-07-08 18:57:38 +04:00
Jordi Boggiano
0ce44f1526 Improve error reporting on failed streams, refs #85 2012-08-18 18:18:40 +02:00
Jordi Boggiano
8108272c6c Added @covers annotations to everything 2011-06-29 20:23:08 +02:00
Christophe Coevoet
3cb3dbdc8f Made the write method protected
Tests are not a good reason to make it public.
2011-04-06 13:22:06 +02:00
Jordi Boggiano
3fa6e4b91f Major refactoring to follow the Logbook model 2011-02-20 20:53:11 +01:00