1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-23 22:42:38 +01:00

200 Commits

Author SHA1 Message Date
adlawson
5d36b5df7a Fix test bootstrap autoloader
The previous `require_once` statement returns `true` when it loads the
autoload file rather than an instance of `ClassLoader`. Changing the
statement to `require` returns the instance needed to add the Monolog
test directory.
2013-09-17 13:22:30 +01:00
odino
abaa54d8fe removed useless test 2013-08-26 13:40:44 +04:00
odino
165778963e the appname can now be set from the handler's constructor 2013-08-26 13:20:13 +04:00
odino
db3df1a1fa NewRelic handler: added the app name 2013-08-26 12:04:22 +04:00
Jordi Boggiano
207039c326 Fix tests 2013-08-09 01:33:47 +02:00
Henrique Moody
fd8b621a93 Refactored ErrorLogHandler to use constantes for types
- Create tests for ErrorLogHandler;
- Remove types 1, 2 and 3 in favor of specific handlers.
2013-08-01 14:05:08 -03:00
Jordi Boggiano
4277c5db4a CS fixes 2013-07-29 00:08:51 +02:00
Jordi Boggiano
e2e041eded Store user in a temporary property instead of hacking it into the record 2013-07-29 00:08:01 +02:00
Jordi Boggiano
52f478b289 Fix tests 2013-07-28 23:19:20 +02:00
Jordi Boggiano
043aabcf2f Merge remote-tracking branch 'odino/master' 2013-07-28 23:01:16 +02:00
Jordi Boggiano
01e1ee7541 Add tests and fix issue with array_merge 2013-07-28 21:16:34 +02:00
Jordi Boggiano
a00f102cda Rename logFormatter to batchFormatter, refs #203 2013-07-28 19:01:33 +02:00
Jordi Boggiano
ec3f56a830 Merge remote-tracking branch 'fabpot/raven-improvements' 2013-07-28 18:48:43 +02:00
odino
b422bb1c5b refactored the implementation of the NR handler and its test:
* the test now checks that if the extension is not loaded, an exception is thrown
* the test now mocks the new relic native functions
* moved some parameters as constants in the handler class
2013-07-24 10:14:35 +04:00
odino
394b0bf872 removed the logic for the fallback handler, its out of place, adapted the "test" 2013-07-24 09:46:20 +04:00
Alessandro Nadalin
b439707cbb Added an handler for NewRelic:
* implemented a test which verifies that the fallback handler handles records when the NewRelic PHP extension is not installes
* implemented the actual handler
2013-07-24 09:46:20 +04:00
Jordi Boggiano
050bb52fd8 Fix a few details and add docs to the ChannelLevelActivationStrategy, refs #186 2013-07-17 18:11:27 +02:00
Jordi Boggiano
e9df30c7f5 Merge remote-tracking branch 'netmikey/master' 2013-07-17 18:00:31 +02:00
Artur Moczulski
fe13e80787 added support for Pushover API priority brought up by SteveEdson in issue #187; the priority levels can be adjusted either through the handler's constructor or setters 2013-07-08 00:35:22 -07:00
Fabien Potencier
29ae147226 Improved the Raven handler when using a Buffer handler 2013-06-15 15:22:51 +02:00
David Windell
94e31e37b8 API match 2013-05-28 11:50:42 +02:00
Jordi Boggiano
aa518ad791 Add stack traces to normalized exceptions, closes #192 2013-05-21 21:05:40 +02:00
Rafael Dohms
0f13a1a6bb HipChat Handler
Adds a handler that is capable of sending notices into HipChat, the team communication system provided by Atlassian.
This is based on the PushoverHandler and built on top of the socketHandler.

The needed configuration is described in the docblock of the HipChatHandler file.
2013-05-08 17:37:53 +02:00
Mike Meessen
690bbdb2ff Refactored / Renamed the CategoryErrorLevelActivationStrategy to the
more appropriate ChannelLevelActivationStrategy.
2013-04-30 10:57:25 +02:00
Mike Meessen
c72aff2238 Added CategoryErrorLevelActivationStrategy, which enables setting the
Error Level threshold per log channel.
2013-04-29 14:52:29 +02:00
Christophe Coevoet
d885932183 Updated the ChromePHPHandler for the new version of the extension 2013-04-23 14:22:10 +02:00
Jordi Boggiano
41d514114c Output message to the user when chrome logs have been truncated, refs #172 2013-04-23 12:05:59 +02:00
Jordi Boggiano
6275edbe75 Stop sending logs when the chrome header size limit has been reached, fixes #172 2013-04-23 11:47:22 +02:00
Jordi Boggiano
642cdf620b Add support for previous exceptions in LineFormatter 2013-04-07 13:22:41 +02:00
Jordi Boggiano
3f8c37b23c CS fixer 2013-03-28 11:41:04 +01: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
5feb21ae1a Fix Buffer, Group and FingersCrossed handlers to make use of their processors, fixes #170 2013-03-17 19:36:02 +01:00
Jordi Boggiano
eaf2b07120 Serialize exceptions in a minimalistic way in the LineFormatter 2013-03-17 19:26:08 +01:00
Simon Mönch
9cf31da70d Better naming 2013-02-26 10:19:42 +01:00
Simon Mönch
bad76ce2a6 Added a request token processor to detect log messages per request 2013-02-25 15:42:26 +01:00
Jordi Boggiano
047488810f Simplify code and cache the getmypid call, refs #167 2013-02-21 10:08:33 +01:00
anho
ff634744fe added ProcessIdProcessor to inject pid to records #165 2013-02-20 21:13:00 +01:00
Jordi Boggiano
9f515d47ce Add possibility to pass handlers/processors to Logger::__construct, fixes #157 2013-02-13 19:06:07 +01:00
Jordi Boggiano
ff45cf4afa Merge remote-tracking branch 'kitchen/logstash-redis'
Conflicts:
	README.mdown
2013-02-13 18:23:43 +01:00
Jordi Boggiano
52073f4589 Merge remote-tracking branch 'cbergau/master' 2013-02-13 18:11:25 +01:00
Markus Staab
6c888417b6 sanitize http headers in NativeMailerHandler to prevent injections. added tests. 2013-02-13 16:19:47 +01:00
Jeremy Kitchen
a463cdcf91 unit test for RedisHandler and README.md update
* updated README.md to inform users of RedisHandler
* added unit test for RedisHandler
2013-02-12 17:47:43 -08:00
ChristianB
f0ba64ad4b Exception will be thrown if ZendMonitorHandler is instantiated without having Zend Server installed. 2013-01-31 12:16:16 +01:00
ChristianB
83b84ff818 Pass $record['formatted'] as the user parameter for zend monitor. Refactored test. 2013-01-31 10:39:11 +01:00
ChristianB
5a2a9129d4 Added test for getDefaultFormatter 2013-01-31 07:24:14 +01:00
ChristianB
a2162c1787 Override getDefaultFormatter instead of creating a formatter with 'new' in method 'write'. Using levelMap again. Refactored test. 2013-01-31 07:22:52 +01:00
ChristianB
b4b2d91c67 Refactored writeZendMonitorCustomEvent signature to provide better testability 2013-01-30 21:42:59 +01:00
ChristianB
4eb6011dc1 Use getRecord to get a record in unit test 2013-01-30 20:17:14 +01:00
ChristianB
32145bc49e Removed testing a mock instead of the real handler 2013-01-30 19:37:42 +01:00