1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 10:20:14 +02:00
Commit Graph

1380 Commits

Author SHA1 Message Date
Jordi Boggiano
5779c3740e Merge pull request #625 from frederikbosch/patch-1
FIX IntrospectionProcessor: E_NOTICE
2015-08-11 11:25:54 +01:00
Frederik Bosch
d72806ca25 Would have, could have. Why not. 2015-08-11 11:59:52 +02:00
Frederik Bosch
63c0363824 Typehint update 2015-08-11 11:58:40 +02:00
Frederik Bosch
0ae159e892 Remove Not in method name
Apparently there is check whether function should be skipped (positive).
2015-08-11 11:54:26 +02:00
Frederik Bosch
8b2df20b95 FIX IntrospectionProcessor: E_NOTICE
Recent merge of #608 misses check whether the trace exists at all at the specific index, leading to undefined offset.

```
E_NOTICE: Undefined offset: 3
```

And because the while statement became unreadable (and too long), I moved it into a separate method.
2015-08-11 11:51:06 +02:00
Jordi Boggiano
c0c0b4bee3 Update changelog for 1.16 1.16.0 2015-08-09 18:44:44 +01:00
Jordi Boggiano
8738000571 Update branch alias 2015-08-09 18:44:31 +01:00
Jordi Boggiano
57dc037895 Add IFTTTHandler to docs 2015-08-09 18:44:06 +01:00
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
837f437b4c Avoid logging fatal errors twice when both error and fatal error handlers are present, fixes #622 2015-08-09 18:16:16 +01:00
Jordi Boggiano
cd3f9f1e50 CS fixes, refs #623 2015-08-09 17:52:11 +01:00
Jordi Boggiano
0fef7571db Merge remote-tracking branch 'nehalvpatel/master' 2015-08-09 17:50:40 +01:00
Jordi Boggiano
2525053e8e Close handlers that can be closed after logging a fatal errors, refs #621 2015-08-09 17:29:54 +01:00
Jordi Boggiano
3dccef613e Make sure handlers can be closed multiple times 2015-08-09 17:29:31 +01:00
Nehal Patel
e3ed389fef Added the IFTTTHandler 2015-08-07 20:05:00 -05:00
Jordi Boggiano
d93492fb60 Merge pull request #611 from KevinMGranger/feature/more_registry_tests
Add more unit tests for Registry
2015-07-31 11:19:40 +01:00
Jordi Boggiano
38a3acef72 Merge pull request #618 from MangoMM/patch-1
Update Util.php
2015-07-31 11:07:37 +01:00
Ahmet Soormally
7f0cc89685 Update Util.php
Fixes bug with error handler. Once `curl_close($ch)` is called, then `curl_errno($ch)` and `curl_error($ch)` makes no sense and will cause an error in the exception handler.
2015-07-29 11:56:27 +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
Jordi Boggiano
e4f45be5dc Fix CS 2015-07-20 19:31:46 +01:00
Jordi Boggiano
00a3ad6572 Merge pull request #608 from xploSEoF/patch-1
Ignore "call_user_func" from debug backtrace
2015-07-20 19:28:40 +01:00
Jordi Boggiano
12e1bd1d39 Merge pull request #609 from xploSEoF/patch-2
Prevent Monolog from ever being introspected
2015-07-20 19:24:38 +01:00
Jordi Boggiano
3f641e31cc Merge pull request #607 from APMG/master
Create directory on initial log write rather than class instantiation.
2015-07-20 19:17:36 +01:00
Jordi Boggiano
6c603fdc52 Use mbstring in flowdock handler when possible to compute short messages, fixes #567 2015-07-20 15:46:52 +01:00
Kevin M Granger
a8ab53fdd2 Add more unit tests for Registry
Coverage should now be 100%
2015-07-17 11:46:18 -07:00
Liam Le Brun
a287cc630e Missed a continue 2015-07-15 14:02:42 +01:00
Liam Le Brun
e021bbd4b2 Multiple functions to skip
Add an array for holding the functions to skip, preventing the functions from ever being used for introspection
2015-07-15 13:36:37 +01:00
Liam Le Brun
16c83796dd Make PHP5.3 compatible 2015-07-15 13:31:43 +01:00
Liam Le Brun
09861e1e47 Prevent Monolog from ever being introspected
Ensure the Monolog namespace is always ignored, and doesn't have to be defined in use.
2015-07-15 12:54:38 +01:00
Liam Le Brun
ac8afbf9a9 Ignore "call_user_func" from debug backtrace
Helps make this compliant where there is no class defined
2015-07-15 12:48:57 +01:00
William Johnston
3fa5b2f36d Create directory on initial log write rather than class instantiation. 2015-07-14 13:19:53 -05:00
Jordi Boggiano
c5b08724f4 Merge pull request #605 from localheinz/fix/docblock
Fix: Type should be bool
2015-07-14 10:27:59 +01:00
Jordi Boggiano
0ea238bd45 Merge pull request #604 from localheinz/fix/undefined-class
Fix: Use FQCNs for exceptions in docblock, too
2015-07-14 10:27:47 +01: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
Andreas Möller
462ffe495a Enhancement: Rename parameter 2015-07-13 22:10:37 -04:00
Andreas Möller
a88d24ef45 Fix: Type should be boolean 2015-07-13 22:10:11 -04:00
Andreas Möller
ebda097b23 Fix: Use FQCNs for exceptions in docblocks, too 2015-07-13 22:07:15 -04: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
ae2b2d0de1 fixes reference for 5.3 in predis callback 2015-07-12 19:28:05 +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
dc5150cc60 Update changelog 1.15.0 2015-07-12 14:54:09 +01:00
Jordi Boggiano
04867228d7 Bump target version 2015-07-12 14:40:17 +01:00
Jordi Boggiano
e92a8823c0 Migrate the curl retry functionality into a util class for re-use, refs #599 2015-07-12 14:40:07 +01:00
Jordi Boggiano
1edc7d9cc9 Merge remote-tracking branch 'psquickitjayant/master' 2015-07-12 14:12:27 +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