Jordi Boggiano
419ca7ac25
Tweak patch a bit, refs #617
2015-08-09 18:28:21 +01:00
Jordi Boggiano
eabe95f9f0
Merge remote-tracking branch 'sminnee/logger-sethandlers'
2015-08-09 18:24:59 +01:00
Jordi Boggiano
3dccef613e
Make sure handlers can be closed multiple times
2015-08-09 17:29:31 +01:00
Sam Minnee
60c96cfa2a
Added Logger::setHandlers()
...
Logger::setHandlers() is intended to help dependency injection systems
that deal more elegantly with property setters than constructor
arguments. Alongside getHandlers(), pushHandler(), popHandler(), it is
a logical addition to the API.
It also attempts to address some possible errors in the format of the
data passed:
- If a map is passed, the keys are removed, as these aren’t expected
by Monolog
- If falsey values are included, these are stripped
It relies on Logger::pushHandler() internally, so that if any special
behaviour is added in the future, this only needs to be added in one
place.
2015-07-28 13:15:02 +12:00
Kevin M Granger
a8ab53fdd2
Add more unit tests for Registry
...
Coverage should now be 100%
2015-07-17 11:46:18 -07:00
Jordi Boggiano
ca1376bd61
CS fixes
2015-07-14 10:26:05 +01:00
Jordi Boggiano
cf6fa57dd4
Merge pull request #602 from ninjapenguin/add-redis-apped-collection
...
Adds ability to cap log size in redis
2015-07-14 09:02:00 +01:00
Matt Wells
12711d133a
Switch back to using rpush
...
Switches back to rpush to keep list order consistent with non capped
collections
2015-07-13 19:40:51 +01:00
Jordi Boggiano
328d66f13f
Fix support for associative tag arrays, refs #588
2015-07-13 11:06:01 +01:00
Matt Wells
4d59281868
Fixes 5.3 compatibility in test cases
2015-07-12 19:21:53 +01:00
Matt Wells
050694291e
Adds ability to cap log size in redis
...
100% backward compatible, defaults to not capping collection size.
Additional constructor param of $capSize added which will ensure logs
list is treated as a FILO queue
Test coverage on new functionality
2015-07-12 17:26:16 +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
66532794b0
Add TagProcessor::addTags and TagProcessor::setTags, fixes #588
2015-07-12 11:55:38 +01:00
Jordi Boggiano
2dc16dd802
Avoid issues with ErrorHandler being used in test suite
2015-07-12 11:54:49 +01:00
Jordi Boggiano
b09370b13a
Skip invalid windows tests
2015-07-12 11:24:20 +01:00
Dominik Zogg
fe12c5278f
stream handler creates a directory if its possible
2015-07-05 12:09:12 +00:00
Austin Hyde
f2fea2c3f5
Add TestHandler::hasRecordThatMatches($regex, $level)
2015-06-20 19:41:52 -04:00
Austin Hyde
3e8f0ecb36
Replace boilerplate with magic methods
2015-06-20 19:39:06 -04:00
Austin Hyde
29da1d8e77
Add a message to assertions to know which ones fail
2015-06-20 19:14:33 -04:00
Jordi Boggiano
0c3d2082ad
Merge pull request #526 from esalter/master
...
Add Hipchat V2 support
2015-06-19 11:46:55 +01:00
Roberto Araujo
d8e7f9debf
Fix HipChatHandler tests
2015-06-12 16:52:46 -03:00
Jordi Boggiano
131b27d113
Update test for 5.4/5.3
2015-06-01 22:33:28 +01:00
Jordi Boggiano
8dbc563310
Merge pull request #541 from smazurov/patch-2
...
made raven user context less destructive
2015-06-01 22:06:43 +01:00
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
Stepan Mazurov
09be78d62a
made raven user context less destructive
2015-04-13 22:02:07 -06: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
Eric Salter
6e8c4a149c
Remove setVersion() method
...
Removed per request
2015-03-10 13:54:29 -04:00
Eric Salter
f28d94f6a6
Add Hipchat V2 support
...
Adds support for Hipchat's V2 API by way of setting the version flag. V1 paths
should remain unchanged. A setVersion() method is provided for convenience in case
one does not want to override all of the default parameters.
2015-03-10 11:06:13 -04: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