Jordi Boggiano
1048aa4a59
Allow BrowserConsoleHandler to be overridden for better integration in frameworks
2016-03-01 16:39:55 +00:00
Jordi Boggiano
481fc4cfa1
PHP7 compat for exception classes, fixes #718
2016-03-01 16:20:06 +00:00
Alexey Karapetov
c688ff17eb
HandlerWrapper
2016-03-01 15:59:22 +00:00
Ronald Drenth
0d2bef0579
Add handleBatch implementation for PhpAmqpLib
2016-03-01 15:57:23 +00:00
Jordi Boggiano
dad186036c
Merge pull request #711 from phansys/json_formatter_normalizer
...
Add ability to include exception's stack traces in `Monolog\Formatter\JsonFormatter`
2016-03-01 15:48:15 +00:00
Jordi Boggiano
973d3ca7ae
Fix race condition in rotating file handler, fixes #709
2016-03-01 15:44:46 +00:00
Jordi Boggiano
6079ae8bfb
Merge remote-tracking branch 'origin/1.0' into 1.x
2016-03-01 15:40:28 +00:00
Jordi Boggiano
b140e31884
Merge pull request #704 from dosten/unset-datetime-parameter
...
Unset the "datetime" parameter in LogglyFormatter
2016-03-01 15:33:13 +00:00
Will Banfield
64f0dd4996
Merge pull request #2 from ZergMark/patch-1
...
Update to use more generic interfaces
2016-02-24 15:08:13 -05:00
Jordi Boggiano
fb314292ab
Merge pull request #727 from greg0ire/set_release_for_all_logs
...
add release number to every log
2016-02-24 18:37:37 +00:00
Mark Garrett
e9ea22ffeb
Update to use more generic interfaces
...
PHP 7 can throw Errors and Exceptions, so use `Throwable` interface. `DateTimeInterface` allows for both `DateTime` and `DateTimeImmutable`.
2016-02-19 17:33:40 -06:00
Jordi Boggiano
cb2778ae77
Add ->withName to clone a handler and get a new name, fixes #730
2016-02-13 16:47:31 +00:00
Daniel Gimenes
e619223b4a
LineFormatter if configured to use short attachment
2016-02-03 21:25:29 -02:00
Grégoire Paris
f1a59c5e0f
add release number to every log
...
This adds an internal release number to the raven handler. The release
number is added to what is sent to sentry unless something already is
present because a release number was sent via "context" or "extra".
2016-01-23 23:00:37 +01:00
Jordi Boggiano
79817af0de
Merge pull request #725 from eexit/1.x
...
Allow GroupHandler to set a formatter to all nested handlers
2016-01-22 18:13:50 +00:00
Jeremy Mikola
f585e714fc
Support ext-mongodb's UTCDateTime class in MongoDBFormatter
...
The legacy driver (i.e. ext-mongo) and MongoDate are not supported on PHP 7.
2016-01-21 16:22:47 -05:00
Jeremy Mikola
aa6ab660bd
MongoDBHandler only supports ext-mongodb and mongodb/mongodb
...
The legacy driver (i.e. ext-mongo) is not supported on PHP 7, so there is no reason to leave behind its supporting code.
2016-01-21 15:58:45 -05:00
Will Banfield
d860b763cb
Response to CR comments
2016-01-21 14:20:09 -05:00
Will Banfield
f6a9fdbb2c
Add case for if manager is passed in
2016-01-21 14:19:35 -05:00
Will Banfield
ad37c8e663
Change 'save' to 'insert' in MongoDBHandler
2016-01-21 14:16:22 -05:00
Joris Berthelot
bf82600f0c
Allow GroupHandler to set a formatter to all nested handlers
2016-01-21 12:50:15 +01:00
Jordi Boggiano
6a35f7387b
Merge pull request #723 from damour/raven_fingerprint
...
Raven client fingerprint support
2016-01-20 10:14:19 +00:00
Dmitriy Garanzha
e2a77060da
Raven client fingerprint support
2016-01-20 11:39:44 +02:00
Javier Spagnoletti
e8e1d9efa3
Add ability to include exception's stack traces in Monolog\Formatter\JsonFormatter
...
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
2015-12-31 11:24:28 -03:00
Jordi Boggiano
f656375b86
Merge pull request #707 from acrobat/version_compare_fixes
...
Removed unnecessary php version checks after php dependency bump to 7.0
2015-12-22 20:52:47 +00:00
Jeroen Thora
8ceda1b62e
Removed unnecessary php version checks after php dependency bump to 7.0
2015-12-20 15:53:48 +01:00
Diego Saint Esteben
4422cdc2b6
Unset the "datetime" parameter in LogglyFormatter
2015-12-18 17:08:31 -03:00
Jordi Boggiano
cb641a8a19
Merge branch '1.x'
2015-12-18 18:24:26 +00:00
Jordi Boggiano
592af02d0c
Clean up alias
2015-12-18 18:24:15 +00:00
Jordi Boggiano
5bc1e18c9b
Drop hhvm support for now
2015-12-18 18:22:06 +00:00
Jordi Boggiano
5f76fe314e
Merge branch '1.0'
2015-12-18 18:18:59 +00:00
Jordi Boggiano
baca9641ba
Update branch alias in 1.0
2015-12-18 18:18:28 +00:00
Jordi Boggiano
82f394a4c4
Update travis build settings
2015-12-18 18:11:53 +00:00
Jordi Boggiano
6c424f851c
Add a lot more scalar types and go strict in Logger
2015-12-18 17:48:48 +00:00
Jordi Boggiano
c9aa0368bf
Bump dependencies
2015-12-18 17:48:46 +00:00
Jordi Boggiano
b5b773e12f
Fix naming conflicts in PhpConsoleHandler
2015-12-18 17:48:45 +00:00
Jordi Boggiano
906bc0e6a2
All handlers are closeable now
2015-12-18 17:48:44 +00:00
Jordi Boggiano
45323b9102
Remove BC magic getter from SwiftMailerHandler
2015-12-18 17:48:42 +00:00
Jordi Boggiano
ad37b7b2d1
Remove default handler when no handlers are set
2015-12-18 17:48:41 +00:00
Jordi Boggiano
902c0c8694
Split interfaces and base/abstract classes into more sensible pieces
2015-12-18 17:48:40 +00:00
Jordi Boggiano
39f8a20e6d
Remove non-PSR-3 methods for adding log records
2015-12-18 17:48:38 +00:00
Jordi Boggiano
35ce15e098
Bump Monolog\Logger::API version
2015-12-18 17:48:37 +00:00
Jordi Boggiano
6505e02fd3
Change timezone to be per-instance and not global
2015-12-18 17:48:36 +00:00
Jordi Boggiano
d381b20b87
Bump required php to 7 and branch to 2.0
2015-12-18 17:48:34 +00:00
Jordi Boggiano
3a41aa08c4
Docblock fixes
2015-12-18 17:48:21 +00:00
Jordi Boggiano
205f528f5b
Merge pull request #701 from robbieaverill/feature/dont-repeat-yourself
...
DRY: Use constants for level codes instead of re-defining
2015-12-16 18:41:23 +00:00
Robbie Averill
ea2bef43a9
DRY: Use constants for level codes instead of re-defining
2015-12-16 09:34:12 +13:00
Jordi Boggiano
cab3ff71ff
Add regression test for #691 and optimize implementation using a single pass loop over the handlers, refs #692
2015-11-26 23:48:42 +00:00
Jordi Boggiano
d4ae6ccffd
Merge remote-tracking branch 'mttjohnson/master'
2015-11-26 23:39:59 +00:00
Matt Johnson
73876ace65
Changed iterating over the $handlers array to allow for correct sequential processing regardless of array containing indexed numerical keys, or associative string keys in the array.
...
It iterates over the entire array until it finds the $handlerKey that was identified earlier using isHandling(). Once the starting position is found it will execute handle() on each handler unless a handler returns true indicating the handler completed the processing of the record, bubbling to the next handler should not occur, and the loop breaks.
This fixes an issue where an associative array of handlers is passed into the Logger constructor when instantiated.
magento/magento2#2529
Seldaek/monolog#691
2015-11-26 02:33:02 -06:00