Nerijus Eimanavičius
5587f6bd3b
Refactored JsonFormatter tests to more readable structure
2016-08-28 01:47:20 +03:00
Nerijus Eimanavičius
6586425a31
Better support for PHP7 \Throwable
2016-08-28 00:47:02 +03:00
Jordi Boggiano
ced9284123
Fix tests
2016-07-29 04:51:33 +02:00
Francis Besset
8b1f522206
Added informations to normalize a SoapFault
2016-07-20 15:18:11 +02: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
6bc1a444db
Truncate messages if they reach the max length of GELF messages, fixes #751
2016-04-02 13:53:47 +01: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
25131bb5f6
Add context.* replacement in line formatter, fixes #717
2016-03-01 16:58:06 +00: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
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
Thomas Ploch
00bfec630a
Recursively check for resource arguments if trace is coming from internal function.
...
With `React` or `Guzzle`, that register stream wrappers with PHP, the traces are treated as coming from internal functions with no line and file inside the frame. But they almost always contain resources as arguments, on which the `json_encode()` call will choke (probably this should be addressed in json_encode internally, since it is very easy to cast a resource to a string).
I added a test case proving the situation and a pretty basic recursive checker for resources which just casts them as a string into the frame again.
2014-12-16 10:13:12 +01:00
Florian Plattner
d6f11d6ba3
Add MongoDBFormatter
2014-12-06 12:52:15 +01:00
Sergey Chizhik
21c54ac660
fix
2014-12-05 14:36:37 +02:00
Sergey Chizhik
7902b8c396
Add exception code
2014-12-04 18:42:38 +02:00
Mike Sherov
f5fe05c27f
Adds exception codes to the exception data in NormalizeFormatter
2014-10-23 15:33:29 -04:00
Jordi Boggiano
b738a6c04c
CS fixes
2014-10-17 19:12:45 +01:00
Dawid Nowak
efe572cb10
LineFormatter: context and extra optionally not shown when empty
2014-07-03 15:03:28 +02:00
Jordi Boggiano
5e8bb7556b
Added $appendNewline flag to the JsonFormatter to enable using it when logging to files, fixes #344
2014-04-20 18:38:47 +02:00
snapshotpl
4a6f9cabb0
Table constant
2014-04-03 22:26:45 +02:00
snapshotpl
180313742e
Remove const
2014-04-03 22:14:21 +02:00
snapshotpl
ea6b428f83
Test for table formatter in FirePHP
2014-03-30 00:54:34 +01:00