Jordi Boggiano
06143b03e5
Add a bunch of return types and fix type inconsistencies reports from phan
2018-07-04 14:14:08 +02:00
Jordi Boggiano
41b8f5ebf4
CS fixes
2018-06-18 18:53:46 +02:00
Jordi Boggiano
bbf9de5c8d
Follow useMicroseconds flag when possible
2018-06-18 16:48:08 +02:00
Lars Strojny
85d49f8568
Better PSR-3 message formatting
2018-06-18 12:24:31 +02:00
Jordi Boggiano
d353a88337
Merge pull request #1046 from grongor/psr-processor-add-option
...
PsrLogMessageProcessor: add option to remove used context fields
2018-06-09 17:24:13 +02:00
Luke Waite
3507f48edb
Remove conditional php version check for debug_backtrace legacy support ( #1134 )
2018-06-07 19:22:49 +02:00
Jakub Chábek
009d4151b4
PsrLogMessageProcessor: add option to remove used context fields
2017-08-21 09:55:09 +02:00
mahone3297
889b25a72b
[feature] add host processor
2017-08-17 17:38:25 +08: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
Lesnykh Ilia
e5ff7eb074
Use coalesce operator ( #982 )
...
* Use coalesce operator
* Use coalesce operator
* Use coalesce operator
* Use coalesce operator
2017-05-08 11:13:42 +02:00
Jordi Boggiano
7405bb5d67
CS fixes
2017-03-20 10:56:47 +01:00
Piers Warmers
a0406bf8dd
Handle DateTime objects in formatted messages ( #940 )
...
* Handle DateTime objects in formatted meessages
* Use interface to catch both DateTime and DateTimeImmutable
* Maintain formatting standards.
* Visibility to private.
2017-03-14 08:07:57 +01:00
Jordi Boggiano
75c37161d5
Merge branch '1.x'
2016-09-29 09:18:55 +02:00
Jordi Boggiano
6bf91fa40a
Make sure MercurialProcessor fails gracefully
2016-09-29 09:17:31 +02:00
Jordi Boggiano
5ce1c921ad
Fix type errors, thanks phan
2016-09-25 22:11:37 +02:00
Jordi Boggiano
85792c8818
Make use of random_bytes for better uniqueness
2016-09-25 21:23:55 +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
96f4fd718f
CS fixes
2016-09-25 17:46:38 +02:00
Jordi Boggiano
d8dee1cc15
Merge branch '1.x'
2016-09-25 16:48:01 +02:00
Jonathan A. Schweder
240b7458dd
add MercurialProcessor
2016-09-25 16:39:55 +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
Jordi Boggiano
c889fb2648
CS fixes & upgrading cs fixer config
2015-11-18 17:09:46 +00: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
Jordi Boggiano
d0f441e8b0
Merge pull request #654 from dracony/patch-1
...
Reduce memory consumption of the debug_backtrace call
2015-10-14 14:26:36 +01:00
Jordi Boggiano
80c4bfb9fd
Restore filtering behavior, refs #663
2015-10-14 14:12:50 +01:00
Jordi Boggiano
0a2e4237d3
Allow overriding of extra fields and configuring them fully in the constructor, fixes #663
2015-10-14 14:09:16 +01: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
Jared Markell
3a3d28f91a
Add getUid() to UidProcessor
2015-08-24 14:50:30 -07: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
328d66f13f
Fix support for associative tag arrays, refs #588
2015-07-13 11:06:01 +01:00
Jordi Boggiano
66532794b0
Add TagProcessor::addTags and TagProcessor::setTags, fixes #588
2015-07-12 11:55:38 +01:00
Markus Staab
b0e7c7097f
Simplify MemoryUsageProcessor
...
Analog https://github.com/Seldaek/monolog/pull/594/files
2015-06-30 14:34:01 +02:00
Nikita
e26175d88a
Update MemoryPeakUsageProcessor.php
...
more simple implementation
2015-06-29 15:15:06 -05:00
Jordi Boggiano
b738a6c04c
CS fixes
2014-10-17 19:12:45 +01:00