1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 18:16:10 +02:00
Commit Graph

1646 Commits

Author SHA1 Message Date
smiley
168bb6e53d return self on several setter/builder methods for more consistent behaviour (#1609) 2022-03-07 14:24:20 +01:00
Koen Kivits
16cc886c02 Fix ErrorHandler::handleError $context signature (#1614)
The context can be null, eg. for internal PHP errors.
2022-03-07 14:11:30 +01:00
Alex Jose
5129feea3e Added user_agent to the WebProcessor (#1613) 2022-03-06 13:27:57 +01:00
Thomas Calvet
8c58abad9e Add AsMonologProcessor attribute (#1637) 2022-03-06 13:08:33 +01:00
Maximilian Bösing
4a11cadb27 Add constructor injection for SocketHandler and its children (#1600)
* feature: add constructor injection for `SocketHandler` and its children

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>

* docs: add parameter documentation to `SocketHandler#__construct`

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2021-10-13 22:29:04 +02:00
Jordi Boggiano
9d1fed4aff Fix insane-memory-limit handling in StreamHandler, fixes #1592 2021-10-01 23:03:22 +02:00
Jordi Boggiano
437e7a1c50 Adjust phpdoc to match the psr/log 3 interface, refs #1589 2021-09-15 13:27:21 +02:00
Jordi Boggiano
493d7475e6 Fix type error 2021-09-14 15:30:26 +02:00
Jordi Boggiano
73af18b61a Merge pull request #1572 from mimmi20/main
add check for required extension
2021-09-14 15:25:45 +02:00
Jordi Boggiano
9638f0dfa7 Merge pull request #1573 from mimmi20/add-extension-checks
add checks for required curl extension
2021-09-14 15:25:08 +02:00
Jordi Boggiano
4b47204f78 Fix SocketHandler::getChunkSize return type, fixes #1570, closes #1576 2021-09-14 15:07:52 +02: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
Jordi Boggiano
f2156cdd55 Tweak some type annotations 2021-08-17 14:13:55 +02:00
Thomas Müller
d76d691acf add checks for required curl extension 2021-07-27 19:50:08 +02:00
Thomas Müller
71cf94a361 add check for required extension 2021-07-27 19:22:53 +02:00
Juan Morales
82ab6a5f4f Fixes php8 non-backward compatible changes (#1568)
* Utils method added to resolve PCRE error messages properly
2021-07-23 09:16:39 +02:00
Jordi Boggiano
d08c09d955 Fix phpstan error 2021-07-23 09:11:20 +02:00
Fabien Villepinte
63e195046c Fix Utils::getClass() with PHP8 (#1563) 2021-07-14 12:57:59 +02:00
Jordi Boggiano
19542ed8ef Normalize @inheritDoc tags, refs #1557 2021-07-08 15:23:09 +02:00
Jordi Boggiano
a6eef7298c Last phpstan fixes 2021-07-05 13:34:03 +02:00
Jordi Boggiano
4b9fdf77ca Fix json formatter to call parent constructor 2021-07-05 13:09:01 +02:00
Thomas Hansen
b2ad71de59 JsonFormatter::normalize() : respect date format from Formatter 2021-07-05 13:09:00 +02:00
Jordi Boggiano
8b5278d8e1 Bump phpstan to level 8 2021-07-04 14:08:43 +02:00
Jordi Boggiano
4ef5da80ad Fix CS 2021-07-04 14:04:52 +02:00
Jordi Boggiano
13d40f953f More type fixes towards level 7 2021-07-04 14:04:52 +02:00
Jordi Boggiano
01d104aa78 Add Record/Level/LevelName type aliases and improve phpstan type coverage to level 6 2021-07-04 14:04:52 +02:00
David Schneider
df3b93b701 Set StreamHandler stream chunk size, fixes #1552
This ensures atomic log record writing to the output stream.
2021-05-07 11:35:18 +02:00
Jordi Boggiano
0dc10f86b8 Merge pull request #1545 from glensc/patch-1
MailHandler: Use array access to compare first character
2021-04-04 18:13:39 +02:00
Elan Ruusamäe
53d53af502 Update to handle empty string 2021-03-27 13:43:44 +02:00
Elan Ruusamäe
0e46f8872c MailHandler: Use array access to compare first character 2021-03-27 12:40:00 +02:00
Yi Yang
f6802992d2 #1539 fix timezone when it's DateTimeImmutable 2021-03-11 15:05:33 -08:00
Marc van der Meulen
7066e39078 When we reset the FilterHandler we should call the handler we are wrapping 2021-01-15 17:25:19 +01:00
Jordi Boggiano
1cb1cde8e8 Update changelog 2020-12-14 14:15:25 +01:00
Jordi Boggiano
546dc0843d Fix comparison 2020-12-14 13:49:05 +01:00
Jordi Boggiano
3ee78ae731 Simplify timeout handling and really allow millisecond precision, refs #1517 2020-12-14 13:34:59 +01:00
Jordi Boggiano
1850160a4f Merge remote-tracking branch 'milos-silni/add-support-ms-writetimeout' into main 2020-12-14 13:29:15 +01:00
Jordi Boggiano
ff4378dfbe Mark elasticaFormatters $type arg as deprecated 2020-12-14 13:26:29 +01:00
Jordi Boggiano
5fbd261d89 Merge pull request #1523 from patrickkusebauch/feature/Elastica
Support for Elastica client up to v7.0.0, with optional drop support for ES types
2020-12-14 13:16:06 +01:00
Jordi Boggiano
9fc7a8a810 Allow changing the date format after normalizer creation, fixes #1459 2020-12-11 13:31:25 +01:00
Jordi Boggiano
61e5ff2b36 Fix more instances of bad FormattableHandlerInterface usages 2020-12-11 13:11:50 +01:00
patrickkusebauch
76639ef02b Elastica up to 7 support 2020-12-11 10:55:38 +01:00
Jordi Boggiano
863670fa94 Avoid sending unicode chars in headers for Wildfire/FirePHPHandler/ChromePHPHandler, fixes #1521 2020-12-10 17:14:28 +01:00
Jordi Boggiano
9ce0431191 Add JSON_PARTIAL_OUTPUT_ON_ERROR, closes #1515 2020-12-10 16:22:24 +01:00
Jordi Boggiano
d356586239 Type hint fixes 2020-12-10 16:04:54 +01:00
Jordi Boggiano
f8c98ee2ba Fix typo 2020-12-10 14:56:54 +01:00
Jordi Boggiano
80644c65ed Remove unnecessary condition 2020-12-10 14:56:28 +01:00
Jordi Boggiano
9ab131c225 Merge pull request #1503 from gfaugere/redispubsub
Adding Redis Pub/Sub handler (closes #574)
2020-12-10 14:32:30 +01:00
Jordi Boggiano
df4d93f148 Simplify addRecord further by doing a single foreach over all handlers, refs #1489 2020-12-10 14:30:02 +01:00
Jordi Boggiano
c203cf84b5 Merge remote-tracking branch 'AntonAcc/speed-up-add-record' into main 2020-12-10 14:05:33 +01:00