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

136 Commits

Author SHA1 Message Date
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
Jordi Boggiano
392ef35fd4 CS fixes 2014-03-23 20:50:26 +01:00
Jordi Boggiano
798ee32294 Merge pull request #337 from domnikl/flowdock-handler
added Flowdock handler
2014-03-23 18:42:58 +01:00
Dominik Liebler
3976583606 added FlowdockFormatter 2014-03-16 15:13:54 +01:00
Jordi Boggiano
e8604a4eaa Merge pull request #309 from apancutt/master
Added support for Loggly batch uploads
2014-02-25 23:34:04 +01:00
Benjamin Zikarsky
b56ed7b0fd Merge remote-tracking branch 'official/master' into gelf-php-compat
Conflicts:
	composer.json
2014-02-22 16:13:58 +01:00
Benjamin Zikarsky
f0ed3d8054 Allow for both mlehner/gelf-php and graylog2/gelf-php usage 2014-02-22 16:11:33 +01:00
Gunnar Lium
2aa09265fc Strip inline line breaks from LineFormatter entries. 2014-02-14 14:35:44 +01:00
Gábor Tóth
3a811ecfda fix normalizing exception trace
The trace does not include the file / line at which the exception is thrown
2014-02-06 12:46:03 +01:00
Adam Pancutt
a46413b15b Added 'timestamp' parameter to $record for indexing by Loggly 2014-01-22 14:31:31 +00:00
Adam Pancutt
70290e7087 Added batch mode tests to JsonFormatter 2014-01-21 11:47:47 +00:00
Adam Pancutt
95f0649b59 Replaced LogglyFormatter with option to change batch formatting in JsonFormatter 2014-01-21 11:39:58 +00:00
Adam Pancutt
e17aad1a99 Added support for Loggly batch uploads 2014-01-21 10:28:27 +00:00
Benjamin Zikarsky
c8289fd654 Updated GelfHandler/GelfFormatter
Changes monolog to use the updated official graylog2/gelf-php
2013-12-28 18:57:39 +01:00
Sergey Rabochiy
e012bf1b63 Fix boolean to string convertation. Fix double normalization.
Details bug:
$context = ["false", false]; // formatted as {"0":"false","1":"false"} when need {"0":"false","1":false}
2013-11-29 16:09:42 +07:00
Jordi Boggiano
3987f88f2c Merge remote-tracking branch 'adlawson/dynamodb-handler'
Conflicts:
	README.mdown
	composer.json
2013-11-11 22:43:16 +01:00
Jordi Boggiano
eea4d089e7 Merge pull request #251 from skymeyer/elastic_search2
ElasticSearchHandler and ElasticaFormatter
2013-11-11 13:23:23 -08:00
Albert Casademont
899f7f52e5 Add millisecond precision in the LogstashFormatter 2013-11-11 15:50:38 +01:00
skymeyer
b1b210dba3 ElasticSearchHandler and ElasticaFormatter 2013-11-04 17:46:48 -08:00
adlawson
ac091bffcd Refactor scalar formatter
Removed some of its own logic in favor of extending NormalizerFormatter to
benefit from shared logic.
2013-11-03 20:03:45 +00:00
adlawson
c35d4016db Add scalar value formatter 2013-11-03 13:30:04 +00:00
Jordi Boggiano
0f3c054dff Fix tests for 5.3 2013-10-28 10:41:17 +01:00
Tarjei Huse
b78d997638 Add logging of exception line and file path to gelf message 2013-10-27 08:29:08 +01:00
Jordi Boggiano
99aad2e059 Formatting fixes 2013-09-16 11:56:03 +02:00
Oliver Byford
45ae71f9a6 Merge Logstach V1 logic into the main Logstash formatter, add a parameter to the constructor to specify version
Defaults to version '0'.
2013-09-16 10:19:26 +01:00
Oliver Byford
c67470515d Fix a bug and a broken test.
Very embarrassing.
2013-09-04 13:40:43 +01:00
Oliver Byford
9f113ced3d Add a Logstash 'V1' Formatter
https://logstash.jira.com/browse/LOGSTASH-675
2013-09-04 11:59:46 +01:00
Jordi Boggiano
aa518ad791 Add stack traces to normalized exceptions, closes #192 2013-05-21 21:05:40 +02:00
Jordi Boggiano
642cdf620b Add support for previous exceptions in LineFormatter 2013-04-07 13:22:41 +02:00
Jordi Boggiano
dd0b216e02 Fix tests 2013-03-18 19:06:02 +01:00
Jordi Boggiano
8fcb833b5c Fix tests 2013-03-18 18:56:14 +01:00
Jordi Boggiano
eaf2b07120 Serialize exceptions in a minimalistic way in the LineFormatter 2013-03-17 19:26:08 +01:00
Jordi Boggiano
47eb599b4a Update tests and changelog 2013-01-11 11:23:20 +01:00
Jordi Boggiano
63e3bfdf7e Resolve json encoding errors issue globally, refs #137 2013-01-06 20:14:14 +01:00
Benjamin Grandfond
0945fcdccb Catch json_encode recursion error 2012-12-21 23:23:38 +01:00