1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-24 06:52:34 +01:00

1055 Commits

Author SHA1 Message Date
Jordi Boggiano
9b350bb1fd Move handler checks in constructor 2014-12-28 17:31:31 +00:00
Jordi Boggiano
18bfe94053 Merge pull request #441 from ryr/master
set sentry logger
2014-12-28 17:25:38 +00:00
Jordi Boggiano
e76eb94fdc Merge pull request #449 from jildertmiedema/patch-1
Give the items a class
2014-12-28 17:09:23 +00:00
Jordi Boggiano
8160b302a2 Bring sampling handler in line with other wrapper handlers 2014-12-28 17:05:54 +00:00
Jordi Boggiano
45f5c7d2d1 Merge remote-tracking branch 'legoktm/sampling' 2014-12-28 16:55:04 +00:00
Jordi Boggiano
2b3ad19a3c Merge remote-tracking branch 'origin/master' 2014-12-28 16:48:10 +00:00
Jordi Boggiano
737f99cc7c Rename server to host 2014-12-28 16:47:43 +00:00
Jordi Boggiano
790d6e7926 Merge remote-tracking branch 'DerManoMann/hipchat_server' 2014-12-28 16:43:47 +00: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
Jordi Boggiano
27f2ab89a8 Merge pull request #472 from danmichaelo/master
SyslogUdpHandler: Send a valid rfc5424 version
2014-12-28 16:29:00 +00:00
Jordi Boggiano
3e1b8a7afe Remove code duplication, refs #435 2014-12-28 16:28:20 +00:00
Jordi Boggiano
33ebc242eb Merge remote-tracking branch 'scuben/enhanced-slack-handler' 2014-12-28 16:12:30 +00:00
Jordi Boggiano
515a096c86 Prevent header injection through content type / encoding in NativeMailerHandler, fixes #458, closes #448 2014-12-28 14:32:10 +00:00
DerManoMann
4763e09f65 Add optional server name 2014-12-24 14:23:54 +13:00
Kunal Mehta
d79400bade Add a SamplingHandler
It wraps around another handler, and only passes on some messages
based on the provided sampling handler.

This was originally written for MediaWiki: https://gerrit.wikimedia.org/r/181346
2014-12-23 12:12:54 -08:00
Jordi Boggiano
5bee6fe56c Fix syslog transport to follow the spec closer, fixes #476 2014-12-17 10:47:08 +00:00
Jordi Boggiano
ebd0f73fbe Merge pull request #475 from tPl0ch/hotfix-normalizer-formatter
Normalize frames for trace items since they can contain invalid data.
2014-12-16 12:52:39 +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
Jordi Boggiano
7db9d6ef4a Remove reference use, refs #474 2014-12-16 10:23:16 +00:00
Jordi Boggiano
07974d92c4 Merge remote-tracking branch 'tPl0ch/hotfix-resource-internal-function' 2014-12-16 10:21:25 +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
Jordi Boggiano
a6e82ad0f7 Merge pull request #473 from tPl0ch/hotfix-gelf-formatter
Added missing check for array key in `GelfMessageFormatter`
2014-12-15 21:41:51 +00:00
Jordi Boggiano
1cb39eedb5 Allow including stack traces in line formatter, fixes #466 2014-12-13 13:54:24 +00:00
Thomas Ploch
9c78c9764a Added missing check for array key in GelfMessageFormatter 2014-12-12 10:38:40 +01:00
Dan Michael O. Heggø
04094e5d99 SyslogUdpHandler: Send a valid rfc5424 version
https://tools.ietf.org/html/rfc5424#section-6.2.2
2014-12-11 00:25:16 +01:00
Jordi Boggiano
3d2567a2f1 Merge pull request #467 from tiagowbpr/master
Php docs small error
2014-12-06 18:16:08 +00:00
tiagowbpr
59c52eeea5 Php docs small error 2014-12-05 23:46:37 -02:00
Jordi Boggiano
4119844a43 Merge pull request #465 from kzooz/kzooz
Add exception code
2014-12-05 12:46:13 +00:00
Sergey Chizhik
21c54ac660 fix 2014-12-05 14:36:37 +02:00
Jordi Boggiano
cbbd378b32 Merge pull request #459 from adamnicholson/master
Fix to ensure API response isn't output directly when using MandrillHandler
2014-12-05 11:03:40 +00:00
Sergey Chizhik
7902b8c396 Add exception code 2014-12-04 18:42:38 +02:00
Jordi Boggiano
673e275c00 Update comments 2014-12-04 15:11:17 +00:00
Jordi Boggiano
09c28e1a45 Merge remote-tracking branch 'edsonmedina/master' 2014-12-04 15:09:24 +00:00
Edson Medina
ae68665460 getLevelName needs to be called earlier, so it can still thrown
exceptions for invalid levels even without a handler
2014-12-02 23:51:28 +00:00
Edson Medina
38f8dc52de Avoid calling expensive methods before checking we need to 2014-12-02 22:07:18 +00:00
Adam Nicholson
00b16667d3 Updated MandrillHandler to set CURLOPT_RETURNTRANSFER to true to ensure the API response isn't output directly 2014-11-26 13:13:06 +00:00
Jordi Boggiano
ab41ed9a94 Merge pull request #453 from mnapoli/patch-1
Removed version constraint from the Installation doc
2014-11-11 12:05:51 +00:00
Matthieu Napoli
316dc9c565 Removed version constraint from Installation doc 2014-11-11 17:02:24 +13:00
Jildert Miedema
4ccc7cb16d Give the items a class
Sometimes log messages disappear behind other elements. Now i can add a custom style for it.
2014-11-06 11:10:21 +01:00
Jordi Boggiano
53c6cf358b Merge pull request #444 from JeroenDeDauw/patch-2
Use FQN since class is not imported
2014-10-29 06:32:01 +00:00
Jordi Boggiano
778a3e1401 Merge pull request #443 from JeroenDeDauw/patch-1
Improve a grammar
2014-10-29 06:31:45 +00:00
Jeroen De Dauw
6595e39ec8 Use FQN since class is not imported 2014-10-28 13:39:01 +01:00
Jeroen De Dauw
06b96795f6 Improve a grammar 2014-10-28 13:17:31 +01:00
ryr
c0bf0f56ae set sentry logger 2014-10-24 13:33:36 +07:00
Mike Sherov
f5fe05c27f Adds exception codes to the exception data in NormalizeFormatter 2014-10-23 15:33:29 -04:00
Jordi Boggiano
d0a9acbad0 Add install instructions 2014-10-21 21:10:18 +01:00