You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2019/12/25 16:53:14 UTC
[GitHub] [logging-log4php] Falseclock opened a new pull request #25: Allow
MDC use callable param
Falseclock opened a new pull request #25: Allow MDC use callable param
URL: https://github.com/apache/logging-log4php/pull/25
up to now it is impossible to use anonymouse function in LoggerMDC
This small fix allows to use function as second parameter
```php
LoggerMDC::put("someSpecialVar",
function() {
return RequestIdGenerator::me()->getSeq();
}
);
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [logging-log4php] jvz commented on issue #25: Allow MDC use
callable param
Posted by GitBox <gi...@apache.org>.
jvz commented on issue #25: Allow MDC use callable param
URL: https://github.com/apache/logging-log4php/pull/25#issuecomment-569134582
Can you add a unit test for the supported syntax?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services