1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +02:00
Commit Graph

240 Commits

Author SHA1 Message Date
Jordi Boggiano
9ff7540d7a Remove typehints on normalizer formatter to avoid invalid function signatures 2017-06-19 00:35:23 +02:00
Jordi Boggiano
3c1fc70c73 Fix mongodb tests 2017-06-18 23:58:24 +02:00
Jordi Boggiano
b76bc133db Rename level_num to monolog_level, refs #960 2017-06-18 23:58:15 +02:00
Jordi Boggiano
56661027a7 Merge remote-tracking branch 'pupsschluepfer/master' 2017-06-18 23:49:52 +02:00
Jordi Boggiano
2551b8e3eb Merge branch '1.x' 2017-06-18 23:46:31 +02:00
Lesnykh Ilia
6696e045df Update JsonFormatter.php 2017-05-03 15:37:25 +03:00
Jordi Boggiano
1b660bbbee Remove constant from constructor 2017-04-10 09:37:23 +02:00
Enleur
faed450d52 Use GELF max length per field and make max length configurable in constructor 2017-04-07 13:49:54 +03:00
Benjamin Pentzold
26c7de1e51 map loglevel (int-value) to log-message, as well 2017-03-28 16:04:50 +02:00
Jordi Boggiano
7405bb5d67 CS fixes 2017-03-20 10:56:47 +01:00
Jordi Boggiano
f3dda67c09 Merge branch '1.x' 2017-03-13 08:08:24 +01:00
Jordi Boggiano
1584a90c48 Fix 5.3 support 2017-03-13 08:02:29 +01:00
Jordi Boggiano
821cc3e4a5 Backport fix for #752, fixes #925 2017-03-12 18:17:37 +01:00
Guillaume Polaert
908960d30b Logmatic fix (#914)
* Adding the marker field to improve the Logmatic.io compatibilty
2017-03-12 17:13:04 +01:00
klemens
722796ab4d spelling fixes (comments, text) 2017-02-27 23:38:55 +01:00
Michal Zuber
cab58eb1e5 Fixed Logstash event format link (#898) 2016-12-13 15:34:24 +01:00
Jordi Boggiano
f6e6f22e77 Merge branch '1.x' 2016-11-26 01:23:57 +01:00
Nils Adermann
45de570954 Don't even try to attempt normalizing iterators or generators in context
Iterators and Generators may not be rewindable, so foreach is not safe
to use on them.

Iterators and especially Generators may trigger irreversible actions on
calling next(), so iterating over all values can potentially cause harm,
e.g. imagine an iterator over a set of HTTP POST requests that are sent
when the next value is requested . The only sufficiently safe thing to
iterate and include here are primitive arrays.
2016-11-24 17:38:07 +01:00
Jordi Boggiano
1dc4cf31e8 Merge branch '1.x' 2016-11-13 20:26:27 +01:00
Jordi Boggiano
cc8a013611 Optimize removal of leftover extra/context placeholders, refs #866 2016-11-13 20:17:30 +01:00
Jordi Boggiano
d33d11f264 Cache version_compare call, refs #884 2016-11-13 19:57:51 +01:00
Jordi Boggiano
fe94f2f1ad Merge pull request #884 from nikolaposa/fix/mongodb-formatter-date
Fixing date/time formatting in MongoDBFormatter
2016-11-13 19:53:29 +01:00
Jordi Boggiano
9da099717b Cast toJson to string in case it returns false, fixes #878 2016-11-13 19:36:50 +01:00
Nikola Posa
b064f86b41 Fixing date/time formatting in MongoDBFormatter. 2016-11-10 20:57:05 +01:00
Pavel Golovin
c3c0abf2a4 Update LineFormatter.php 2016-10-10 19:01:08 +03:00
Pavel Golovin
ccb4aeba21 Remove substitution for not defined variables
If variable in extra or context isn't defined, than placeholder will not not be replaced in format string. This patch remove all not replaced placeholders
2016-10-10 18:57:57 +03:00
Jordi Boggiano
0d01b2c8c7 Merge branch '1.x' 2016-10-03 20:31:55 +02:00
Jordi Boggiano
214b8ef34b Add total amount of items when aborting traversable normalization 2016-10-03 20:31:30 +02:00
Jordi Boggiano
3884c922ee Merge branch '1.x' 2016-09-29 09:29:36 +02:00
Jordi Boggiano
7f135e9ed0 Add support for consumed generators in NormalizerFormatter, fixes #838 2016-09-29 09:29:30 +02:00
Jordi Boggiano
6e6586257d Add scalar types to processor/formatters and top level classes 2016-09-25 21:23:35 +02:00
Jordi Boggiano
bb61bfbe3b When newlines are allowed in LineFormatter, unpack json_encoded blobs containing newlines into multiline strings, fixes #752 2016-09-25 18:22:52 +02:00
Jordi Boggiano
5a501834c0 Fix MongoDBFormatter 2016-09-19 13:31:41 +02:00
Jordi Boggiano
ec945b60d4 Merge branch '1.x' 2016-09-18 18:10:42 +02:00
Jordi Boggiano
1b5d46fc52 Revert addition of JSON_NUMERIC_CHECK as per #844 comment 2016-09-18 17:59:47 +02:00
Guillaume Polaert
19d72693c8 Preserved typing for float and integers values
Related #831
Logs stored in a ELK-based solution need to keep the value typing, especially with float vs integer types.
Adding `JSON_NUMERIC_CHECK` and `JSON_PRESERVE_ZERO_FRACTION` allow to avoid issue.
2016-09-05 16:30:35 +02:00
Nerijus Eimanavičius
6586425a31 Better support for PHP7 \Throwable 2016-08-28 00:47:02 +03:00
Jordi Boggiano
5967b80dfb Only use DateTimeImmutable formatting for default date format, fixes #827 2016-07-29 05:07:02 +02:00
Jordi Boggiano
6b0d0c4a19 Merge branch '1.x' 2016-07-29 04:53:49 +02:00
Francis Besset
8b1f522206 Added informations to normalize a SoapFault 2016-07-20 15:18:11 +02:00
Jordi Boggiano
f16e67d523 CS fixes 2016-07-02 15:12:25 +01:00
Jordi Boggiano
a36b099646 Merge remote-tracking branch 'JulienBreux/feature/logmatic' 2016-07-02 15:05:16 +01:00
Jordi Boggiano
b909ca1e02 Merge branch '1.x' 2016-07-02 15:03:11 +01:00
Dmitry Ivanov
1c75491af2 HtmlFormatter methods accessibility
Please, make them protected instead of private to enable comfortable overriding of HtmlFormatter class.
2016-07-02 14:38:53 +01:00
Jordi Boggiano
f4567f1a5f Merge pull request #808 from naderman/fix/normalizer-recusion
Normalization of arrays containing self references
2016-07-02 15:34:40 +02:00
Julien Breux
4230ff5560 Fix scalar typehints 2016-06-28 18:41:45 +02:00
Julien Breux
996f420205 Add Logmatic.io 2016-06-28 18:07:18 +02:00
Nils Adermann
50232e7bb4 Introduce a depth parameter for normalization to limit stack nesting 2016-06-22 14:36:16 +02:00
Jordi Boggiano
03bbe04ba1 Merge branch '1.x' 2016-06-11 16:09:32 +01:00
Elan Ruusamäe
33df788930 Update NormalizerFormatter.php
^H the i
2016-06-11 16:09:14 +01:00