Jordi Boggiano
1a1f506f0e
Fix up #546 to json serialize correctly
2015-06-01 21:42:42 +01:00
Jordi Boggiano
cbf17236e6
Merge remote-tracking branch 'draev/patch-1'
2015-06-01 21:32:03 +01:00
Jordi Boggiano
8c4b1be4a2
Change Logger::setTimezone to accept a DateTimeZone object, refs #566
2015-06-01 21:15:07 +01:00
Bryan Davis
5d7db08106
Add Logger::setTimezone()
...
Add a setter method to allow changing the timezone used when creating
new log records. This provides a means to correct a behavioral change
introduced by 6cbdc04 where use of the PHP runtime default timezone
provided by `date_default_timezone_get()` was introduced. In most
environments the new default behavior is preferable, but if an
application allows the default timezone to vary between requests it
causes confusing log output.
2015-05-20 22:05:03 -06:00
Reinier Kip
162c30768d
Allow PSR-3 passthru level in FingersCrossedHandler.
2015-05-11 13:26:40 +02:00
Jordi Boggiano
e968bd36e5
Merge pull request #553 from JeroenDeDauw/AmqpHandlerTest
...
Remove unused import in AmqpHandlerTest
2015-05-05 18:13:34 +01:00
Jordi Boggiano
1065abe1f7
Merge pull request #552 from JeroenDeDauw/deadvar
...
Remove dead varialble
2015-04-30 18:29:05 +01:00
jeroendedauw
f8f6615887
Remopve dead varialble
...
This makes it more obvious that this test is not actually doing much
2015-04-27 01:53:56 +02:00
jeroendedauw
c4c7133a6d
Remove unused import in AmqpHandlerTest
2015-04-27 01:50:40 +02:00
Reda Bouchaala
2cb4a57490
Removed Logger::toMonologLevel() code duplication and added relevant tests
2015-04-25 19:42:19 +01:00
Dmitrii Raev
b1f2e2f5ec
Change Test.. но __toString method called..
2015-04-23 23:54:00 +03:00
Jordi Boggiano
6d10786e82
Merge pull request #533 from barbushin/php-console-handler
...
Add PHPConsoleHandler to debug in Google Chrome
2015-04-23 15:19:59 +01:00
barbushin
cd90150c24
Add PHPConsoleHandler to debug in Google Chrome
...
Integrates Monolog with very popular Google Chrome extension "PHP Console" https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef and server library https://github.com/barbushin/php-console . PHPConsoleHandler and "PHP Console" server library code are 100% covered by tests.
2015-03-30 23:47:09 +08:00
Richard Tuin
b63e013827
Add strpos based TestHandler methods
2015-03-18 07:34:38 +01:00
Jordi Boggiano
d809f576bb
Revert "Switch HipChatHandler to API v2", fixes #525
...
This reverts commit 01549ec4d05e2d3f33227531d9fc9454d5ef6049.
2015-03-09 09:57:01 +00:00
Pascal Borreli
a2c6c37c8d
Fixed typos
2015-03-05 01:11:15 +00:00
Jordi Boggiano
d434bb4794
Add INF/NaN normalization, fixes #523
2015-03-05 00:57:49 +00:00
John Kary
fea588c055
Swift_Message can now be customized based on logged data
2015-03-02 22:51:57 -06:00
John Kary
f5eaeeb144
Swift_Message creation is now lazy when using callback
...
Swift_Message object is not created until right before the message is
sent, if it is sent at all. This prevents the expensive Swift_Mailer
autoloader from being invoked.
Swift_Mailer is now also required to run test suite
2015-03-01 20:03:39 -06:00
Jordi Boggiano
995a61bec8
CS fixes
2015-03-01 14:12:35 +00:00
Jordi Boggiano
5cd99de56d
Accept incomplete records in GelfMessageFormatter, closes #482
2015-03-01 13:59:22 +00:00
Jordi Boggiano
d0e5a69331
Merge pull request #504 from korchasa/master
...
Switch HipChatHandler to API v2
2015-02-28 21:41:06 +00:00
Stepan Mazurov
c1fd9cddf2
Added overwriting of user context to RavenHandler
2015-02-27 16:43:19 -07:00
Jordi Boggiano
ab3d7c4898
Remove useless functional test
2015-02-25 16:48:51 +00:00
dtarasov
ad5d65b262
#508 add hasLogger method to Monolog\Registry
2015-02-18 11:56:56 +03:00
korchasa
01549ec4d0
Switch HipChatHandler to API v2
2015-02-03 20:39:09 +03:00
John Kary
6c1836467c
Restore ability to continue using mlehner/gelf-php in test
...
Was previously broken by a coding standard commit 392ef35fd470638e08d0160d6b1cbab63cb23174
2015-01-20 00:08:01 -06:00
louis
2ae33f7382
bugfix: use custom hipchat server in buildHeader method
2014-12-30 11:31:36 +01: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
dcfae95e6b
Merge remote-tracking branch 'flowpl/add_newrelic_name_transaction'
2014-12-29 19:24:06 +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
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
515a096c86
Prevent header injection through content type / encoding in NativeMailerHandler, fixes #458 , closes #448
2014-12-28 14:32:10 +00: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
Florian Plattner
e6e2457c55
added support for newrelic_name_transaction() to NewRelicHandler
2014-12-18 00:16:03 +01:00
Jordi Boggiano
5bee6fe56c
Fix syslog transport to follow the spec closer, fixes #476
2014-12-17 10:47:08 +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
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
Florian Plattner
d6f11d6ba3
Add MongoDBFormatter
2014-12-06 12:52:15 +01:00