Jordi Boggiano
2ff7afda31
Change the way objects are normalized to avoid multi-levels of json encoding, fixes #560
2016-05-26 19:21:47 +01:00
Jordi Boggiano
76a91c6722
Set default date format to have a timezone, fixes #196
2016-05-26 18:04:51 +01:00
Jordi Boggiano
912d813c73
Add our own DateTime implementation to provide nicer JSON output, fixes #736
2016-05-20 21:33:27 +01:00
Jordi Boggiano
e27225dc40
Switch to DateTimeImmutable everywhere
2016-05-20 20:55:31 +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
1161b23148
Fix logstash formatter tests
2016-05-20 20:07:04 +01:00
Jordi Boggiano
f6afa8624c
Merge branch '1.x'
2016-04-10 12:50:34 +01:00
Christian Flothmann
b437bb928a
fix Gelf message formatter tests
...
Version 1.4.1 is the last version compatible with PHP < 5.3.9, but
filtered all message attributes with zero string length.
2016-04-05 15:51:16 +02:00
Jordi Boggiano
ef1568b89e
Merge branch '1.x'
2016-04-02 14:13:15 +01:00
Jordi Boggiano
6bc1a444db
Truncate messages if they reach the max length of GELF messages, fixes #751
2016-04-02 13:53:47 +01:00
Jordi Boggiano
f29dffeb16
Merge branch '1.x'
2016-03-13 16:20:29 +00:00
Jordi Boggiano
a9ccae25cb
Fix elastica formatter test, refs #742
2016-03-13 16:20:24 +00:00
Malte Blättermann
9ef18f111f
Added millis
2016-03-13 16:18:47 +00:00
Jordi Boggiano
ba995ffd1e
Merge branch '1.x'
2016-03-01 17:15:43 +00:00
Jordi Boggiano
5d6c2048c8
Merge pull request #724 from billybanfield/ISSUE-695
...
Support ext-mongodb in MongoDBHandler
2016-03-01 17:04:31 +00:00
Jordi Boggiano
25131bb5f6
Add context.* replacement in line formatter, fixes #717
2016-03-01 16:58:06 +00:00
Jordi Boggiano
b140e31884
Merge pull request #704 from dosten/unset-datetime-parameter
...
Unset the "datetime" parameter in LogglyFormatter
2016-03-01 15:33:13 +00:00
Jeremy Mikola
f585e714fc
Support ext-mongodb's UTCDateTime class in MongoDBFormatter
...
The legacy driver (i.e. ext-mongo) and MongoDate are not supported on PHP 7.
2016-01-21 16:22:47 -05:00
Javier Spagnoletti
e8e1d9efa3
Add ability to include exception's stack traces in Monolog\Formatter\JsonFormatter
...
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
2015-12-31 11:24:28 -03:00
Jeroen Thora
8ceda1b62e
Removed unnecessary php version checks after php dependency bump to 7.0
2015-12-20 15:53:48 +01:00
Diego Saint Esteben
4422cdc2b6
Unset the "datetime" parameter in LogglyFormatter
2015-12-18 17:08:31 -03:00
Jordi Boggiano
0178fd4f09
CS fixes, refs #683
2015-11-18 17:53:15 +00:00
Jordi Boggiano
9532e979b6
Merge remote-tracking branch 'bd808/feature/clean-json'
2015-11-18 17:50:41 +00:00
Jordi Boggiano
665453d06a
Use json_encode for the whole message formatting, refs #686
2015-11-18 17:11:02 +00:00
Jordi Boggiano
c889fb2648
CS fixes & upgrading cs fixer config
2015-11-18 17:09:46 +00:00
fordnox
034e895a6d
Do not include message levels if it is already included in tag
2015-11-15 21:23:25 +02:00
fordnox
a5552dd34d
Add fluentd formatter.
2015-11-15 20:39:30 +02:00
Bryan Davis
6f9e221bd6
Attempt to recover from json encoding errors
...
Detect and attempt to recover from json_encode errors triggered by
strings containing invalid UTF-8 sequences. Recovery will only be
attempted when encoding strings or arrays. If recovery fails then
a RuntimeException will be thrown.
The recovery process will convert invalid UTF-8 codepoints as though the
input string was encoded using the ISO-8859-15 character encoding. This
conversion may result in incorrect string output if the original
encoding was not ISO-8859-15, but it will be a valid UTF-8 string.
Closes #545
2015-11-12 10:59:27 -07:00
Anton Sergeyev
f19d9ce9a1
#673 Fix fatal error while normalizing with __toString method which may throw an exception
2015-10-25 22:44:00 +06:00
François-Xavier de Guillebon
f24867ad06
Fixed undeclared properties
2015-09-17 14:33:27 +02:00
Henrique Moody
50fb249739
Better normalization for resources
2015-08-20 15:01:24 -03:00
Jordi Boggiano
ca1376bd61
CS fixes
2015-07-14 10:26:05 +01:00
Jordi Boggiano
bfe5081735
Fix idiotic sunday
2015-07-12 14:05:44 +01:00
Jordi Boggiano
558678b420
Adjust check for php5.3/5.4
2015-07-12 14:01:43 +01:00
Jordi Boggiano
0c8a92af47
Throw exception when json encoding fails and errors are not ignored, fixes #545
2015-07-12 13:44:48 +01:00
Jordi Boggiano
131b27d113
Update test for 5.4/5.3
2015-06-01 22:33:28 +01:00
Jordi Boggiano
1a1f506f0e
Fix up #546 to json serialize correctly
2015-06-01 21:42:42 +01:00
Dmitrii Raev
b1f2e2f5ec
Change Test.. но __toString method called..
2015-04-23 23:54:00 +03:00
Jordi Boggiano
d434bb4794
Add INF/NaN normalization, fixes #523
2015-03-05 00:57:49 +00:00
Jordi Boggiano
5cd99de56d
Accept incomplete records in GelfMessageFormatter, closes #482
2015-03-01 13:59:22 +00:00
Jordi Boggiano
d7b0a0a20b
Fix CS
2014-12-29 20:46:15 +00:00
Jordi Boggiano
5ce2b38b3b
Fixing tests and CS, refs #468
2014-12-29 20:45:41 +00:00
Jordi Boggiano
ad4f488bc0
Merge remote-tracking branch 'flowpl/master'
2014-12-29 20:37:12 +00:00
Florian Plattner
04648dba78
some cleanup
2014-12-29 20:38:08 +01:00
Jordi Boggiano
10a3bfa930
Merge pull request #440 from mikesherov/exceptionCodes
...
Adds exception codes to the exception data in NormalizeFormatter
2014-12-28 16:40:10 +00:00
Thomas Ploch
50b6bf45d1
Use different testing pattern for PHP 5.4 and PHP 5.5
2014-12-16 13:46:06 +01:00
Thomas Ploch
e66ba56cc0
Fixed array()
usage and added HHVM_VERSION
check
2014-12-16 13:35:22 +01:00
Thomas Ploch
dca8f5841f
Normalize frames for trace items since they can contain invalid data.
...
Refs https://github.com/Seldaek/monolog/pull/474/files
The fix in the previous PR did not take into account that there might be object wrapped resources that would break json_encode, so the best solution would be normalizing those frames again.
@Seldaek Sorry for the inconvenience, but our graylog is still ramming up with those json_encode error messages.
2014-12-16 13:26:24 +01:00
Jordi Boggiano
2d192b0567
Skip test in hhvm
2014-12-16 11:04:16 +00:00
Jordi Boggiano
d7561931a5
Attempt to fix hhvm build
2014-12-16 10:34:35 +00:00