1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-31 16:51:46 +02:00

2808 Commits

Author SHA1 Message Date
Jordi Boggiano
7699cebc46 Minor docblock tweaks 2022-08-20 12:37:52 +02:00
Grégoire Pineau
5df3238664 Fix bug with level in GitProcessor (#1749) 2022-08-17 23:30:28 +02:00
Jordi Boggiano
8471abd5ef Merge branch '2.x' 2022-08-02 15:04:49 +03:00
Jordi Boggiano
132eace138 Fix build 2022-08-02 15:03:47 +03:00
pafernandez-oesia
620dca1126 Update BrowserConsoleHandler console output method (#1739)
Instead of using console.log for all log levels, it uses debug, info, warn and error methods depending on the log level.
This makes filtering logs easier in the browser console and highlights error level messages.
2022-08-02 13:47:03 +02:00
Jordi Boggiano
305444bc6f Update changelog 3.2.0 2022-07-24 14:00:55 +02:00
Jordi Boggiano
41498055d0 Merge branch '2.x' 2022-07-24 13:56:45 +02:00
Jordi Boggiano
720488632c Update changelog 2.8.0 2022-07-24 13:55:47 +02:00
Jordi Boggiano
60d9aab60e Fix tests 2022-07-22 20:55:12 +02:00
Jordi Boggiano
5f839e0e63 Clean up unneeded use statements, refs #1689 2022-07-22 20:50:29 +02:00
Jordi Boggiano
4e131c13ac Merge branch '2.x' 2022-07-22 20:49:57 +02:00
Jordi Boggiano
4b4fad9476 Fix serialization to include private properties, fixes #1727, fixes phpro/grumphp#1020 2022-07-22 20:49:07 +02:00
Jordi Boggiano
f7dfa00f08 Add Level::toRFC5424Level method and restore BC to Syslog handlers (broken in #1689) 2022-07-22 17:04:34 +02:00
Jordi Boggiano
7d31b642bd Merge branch '2.x' 2022-07-22 16:50:53 +02:00
Lusso Luca
ffd505543c Add RFC 5424 level (7 to 0) support to Logger::log and Logger::addRecord, fixes #1686 (#1723)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2022-07-22 16:46:43 +02:00
picass0
a7e5beda57 finishing Syslog formatter (#1689)
* feat: Syslog formatter

* feat: Syslog formatter, app name

* update syslogFormatter

* Remove legacy syntax

Co-authored-by: Dalibor Karlović <dalibor.karlovic@sigwin.hr>
Co-authored-by: Renat Gabdullin <renatobyj@gmail.com>
2022-07-22 16:17:53 +02:00
Pavel Bychko
320909a1d1 Fix replaceNewlines method to avoid replacing escaped backslashes, closes #1721, fixes #1720 2022-07-22 16:05:32 +02:00
Jordi Boggiano
7684fae8fa Merge branch '2.x' 2022-07-22 15:51:15 +02:00
Jordi Boggiano
cf0f4b3814 Handle __toString to serialize objects which are not json-serializable in JsonFormatter, fixes #1733 2022-07-22 15:27:46 +02:00
Jordi Boggiano
284482a726 More test fixes 2022-07-22 15:12:01 +02:00
Jordi Boggiano
1e6a4e106c Remove deprecated handlers from docs 2022-07-22 15:10:54 +02:00
Jordi Boggiano
34635fdcf5 Add docs 2022-07-22 15:08:12 +02:00
Jordi Boggiano
6fdeea463c Fix build 2022-07-22 15:07:44 +02:00
Jordi Boggiano
9c1fb56f6a Deprecate CubeHandler and PHPConsoleHandler which are targetting abandoned projects, fixes #1734 2022-07-22 15:00:02 +02:00
Jordi Boggiano
611ff01fa6 Skip php8.2 default build 2022-07-22 14:48:24 +02:00
Jordi Boggiano
3a1ea88ee0 Fix matrix 2022-07-22 14:47:49 +02:00
Jordi Boggiano
b3ac20ef32 Matrix update 2022-07-22 14:46:07 +02:00
Jordi Boggiano
ad09e76f97 Add php 8.2 build 2022-07-22 14:26:06 +02:00
Jordi Boggiano
c1c73b07de Update issue templates 2022-07-22 14:25:43 +02:00
erikn69
27dc1b2ef7 Fix utf8_encode deprecation (#1722) 2022-07-22 14:23:53 +02:00
Jordi Boggiano
83db4b3f81 Handle depth to avoid cases where an exception has many too many previous exceptions, fixes #1726 2022-07-22 14:18:01 +02:00
systemsolutionweb
ffc2bc2e23 Update .gitattributes, closes #1688 2022-07-22 14:12:11 +02:00
Jordi Boggiano
475bc87409 Fix issues 2022-07-22 13:33:21 +02:00
Jordi Boggiano
6cc788bdec Fix build error with lowest deps on php7.4 2022-07-22 13:25:12 +02:00
Max Ageev
af8efac0d5 Check if errorMessage contain error "File exists"
Fixes #1678, closes #1685

When we try to create directory we got error and find out that error is to the fact that directory already was created for us.
If that the case we should not throw exception as it's fine now...
If file was deleted after that it's not problem of this funtion.
2022-07-22 13:19:52 +02:00
Thomas Müller
f958fdac0f allow Predis 2.0, closes #1732 2022-07-22 13:16:54 +02:00
Jordi Boggiano
11be0a4b30 Fix phpstan errors 2022-07-22 13:15:11 +02:00
Mikhail Popov
3734f190f8 Add the ability to set or redefine attributes for messages in Rabbit. (#1724)
One of content_type, content_encoding, message_id, user_id, app_id, delivery_mode, priority, timestamp, expiration, type or reply_to, headers.

Co-authored-by: Попов Михаил <popov.mv@betcity.ru>
2022-07-22 13:08:34 +02:00
Luís Cobucci
197f534d42 Add basic support to Google Cloud Logging format (#1719)
Google Cloud Logging doesn't show the correct level log when using
JsonFormatter, making observability a bit trickier. This applies minor
tweaks to the default format, allowing log entries to be properly
represented.

There are alternative packages to this but they add fields that aren't
strictly required - also performing `debug_backtrace()` calls that are
usually not desired when in production mode.

This is a backport of https://github.com/Seldaek/monolog/pull/1690

Signed-off-by: Luís Cobucci <lcobucci@gmail.com>
2022-07-22 13:04:51 +02:00
Luís Cobucci
1ae4f609ba Add basic support to Google Cloud Logging format (#1690)
Google Cloud Logging doesn't show the correct level log when using
JsonFormatter, making observability a bit trickier. This applies minor
tweaks to the default format, allowing log entries to be properly
represented.

There are alternative packages to this but they add fields that aren't
strictly required - also performing `debug_backtrace()` calls that are
usually not desired when in production mode.

Signed-off-by: Luís Cobucci <lcobucci@gmail.com>
2022-07-22 13:03:58 +02:00
Mathias Reker ⚡️
100d0f1625 is null (#1711)
Replaces is_null($var) expression with null === $var.
2022-06-21 22:21:02 +02:00
Jordi Boggiano
3cba75ec09 Mark Logger @final to discourage extension 2022-06-19 14:12:51 +02:00
Jordi Boggiano
0c375495d4 Update changelog 3.1.0 2022-06-09 11:09:00 +02:00
Jordi Boggiano
0ddba7342f Merge branch '2.x' into main 2022-06-09 11:04:38 +02:00
Jordi Boggiano
5579edf28a Update changelog 2.7.0 2022-06-09 10:59:12 +02:00
henning
24e414c993 Added $datetime parameter to addRecord method to optionally log into the past/future 2022-06-09 10:49:31 +02:00
Gene Alyson Fortunado Torcende
8ac56aa42b RotatingFileHandler to maintain the correct maximum number files when using folder by date (#1671) 2022-06-09 10:41:11 +02:00
Jordi Boggiano
eac0c22ad2 Mark TestCase internal until PHPStorm handles this better, fixes #1677 2022-06-09 10:40:17 +02:00
Jordi Boggiano
9992c77e05 Add warning that docs site is for 3.x, fixes #1679 2022-06-09 10:17:29 +02:00
Jordi Boggiano
417c27dc72 Remove return type from ProcessorInterface to fix interop with Monolog 2, fixes #1680 2022-06-09 10:11:53 +02:00