Subhan Shamsoddini
0a60d6922a
replace isset
with coalesce operator ( #1761 )
2023-02-04 21:51:56 +01:00
Jordi Boggiano
1dacc790b9
Remove LevelName enum in favor of a Level::getName method, fixes #1667 ( #1668 )
2022-05-10 11:15:16 +02:00
Jordi Boggiano
6627c092d8
Add phpstan strict rules and deprecation rules, fix all related issues
2022-04-24 11:08:10 +02:00
Jordi Boggiano
7952a83e0c
Move phpdoc to native types
2022-04-20 09:21:58 +02:00
Jordi Boggiano
2695fa86cd
CI fixes
2022-04-19 22:16:53 +02:00
Jordi Boggiano
2d006a8472
Convert level/levelName to enums ( #1656 )
2022-04-19 21:49:03 +02:00
Jordi Boggiano
5eb9b8ed93
Code cleanups
2022-03-21 14:18:54 +01:00
Jordi Boggiano
22c8b19358
Add LogRecord class, drop PHP <8.1
2022-03-21 14:18:53 +01:00
Jordi Boggiano
77b71e0baf
Fix syntax
2022-03-18 10:43:11 +01:00
jszczypk
f0e0dbaa52
added information about call type from debug_backtrace ( #1612 )
...
$record['extra']['callType'] will contain current call type: "->" or "::" depending if it was normal or static method call.
Gives possibility to nicely format messages "{$record['extra']['class']}{$record['extra']['callType']}{$record['extra']['function']} ..."
2022-03-18 10:31:44 +01:00
Jordi Boggiano
8b5278d8e1
Bump phpstan to level 8
2021-07-04 14:08:43 +02:00
Jordi Boggiano
01d104aa78
Add Record/Level/LevelName type aliases and improve phpstan type coverage to level 6
2021-07-04 14:04:52 +02:00
George Mponos
208381d43e
added more docblock fixes
2018-12-09 22:48:48 +02:00
Jordi Boggiano
6ab058099c
Merge branch '1.x'
2018-11-04 17:18:09 +01:00
Nicolas Grekas
db8130ce83
Add ProcessorInterface, an optional one to allow labelling Monolog processors
2018-10-12 12:14:11 -07:00
Jordi Boggiano
41b8f5ebf4
CS fixes
2018-06-18 18:53:46 +02:00
Luke Waite
3507f48edb
Remove conditional php version check for debug_backtrace legacy support ( #1134 )
2018-06-07 19:22:49 +02:00
Jordi Boggiano
1417e2d183
Merge branch '1.x'
2017-06-19 02:16:33 +02:00
Brant Messenger
1b769912d1
PHP Versions less than 5.3.6 throws undefined constant DEBUG_BACKTRAC… ( #986 )
...
* PHP Versions less than 5.3.6 throws undefined constant DEBUG_BACKTRACE_IGNORE_ARGS
Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php on line 58
* Define DEBUG_BACKTRACE_IGNORE_ARGS if not defined.
* Solution using PHP_VERSION_ID and not defining...
...DEBUG_BACKTRACE_IGNORE_ARGS
2017-06-19 01:16:17 +02:00
Jordi Boggiano
6e6586257d
Add scalar types to processor/formatters and top level classes
2016-09-25 21:23:35 +02:00
Jordi Boggiano
21dde4dedb
Move to strict mode and fix tests
2016-05-27 13:44:00 +01:00
Jordi Boggiano
f200e79879
CS fixes
2016-05-26 20:54:06 +01:00
mtopolski
1dbc4c3b51
changed variable to be more descriptive
2015-10-26 10:20:58 -07:00
mtopolski
2ae6b3338b
camelcase
2015-10-22 11:12:48 -07:00
mtopolski
c65aa23536
added param in InstrospectionProcessor __construct to allow stacktrace offset
2015-10-22 10:34:56 -07:00
dracony
cf2faeb3b7
Reduce memory consumption of the debug_backtrace call
...
Since the code does not need neither the 'object' not 'args' keys from backtrace, we can save some memory by not requesting them.
I have a better idea planned too: first attempt getting the trace with limited back trace (limit to only about 5 results), and get the full one only if those were not enough
2015-09-26 21:53:29 +02:00
Jordi Boggiano
5785a9ac4a
Fix CS and php5.3 compat
2015-08-31 10:26:07 +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
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
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
Jordi Boggiano
ca1376bd61
CS fixes
2015-07-14 10:26:05 +01:00
Jordi Boggiano
feb19af2d4
Add support for PSR-3 levels to all public APIs accepting levels, fixes #421
2014-09-30 13:59:45 +01:00
Jordi Boggiano
3926d95f8a
CS fixes
2013-12-26 11:43:12 +01:00
Artur Geraschenko
ff43ef9860
Init IntrospectionProcessor with skip classes parameter with fixed array notation
...
Logger maybe use in other debug classes and I must be able to skip my debug classes.
For example: new IntrospectionProcessor(Logger::DEBUG, array('Monolog\\', 'Debug'))
2013-12-12 21:27:31 +03:00
Kris Wallsmith
0f5cdb285a
added level to introspection processor
2013-09-26 12:52:23 -07:00
Jordi Boggiano
da33c84d07
CS fixes
2012-06-14 15:47:01 +02:00
Jordi Boggiano
7e0f4ef70e
Add word of caution to the IntrospectionProcessor
2011-07-04 22:16:42 +02:00
Jordi Boggiano
f93d6f0837
Added IntrospectionProcessor: Adds the line/file/class/method from which the log call originated
2011-07-04 21:32:49 +02:00