ppkarwasz opened a new pull request, #1171:
URL: https://github.com/apache/logging-log4j2/pull/1171
This PR adds a minimal amount of methods to greatly simplify flow tracing
with `LogBuilder`. E.g.:
```
logger.traceEntry("a={}, b={}", 1, 42);
```
can be now rewrittent as:
```
logger.atTrace()
.withMarker(AbstractLogger.ENTRY_MARKER)
.logAndGet(() -> {
LoggingSystem.getFlowMessageFactory()
.newEntryMessage("a={}, b={}", 1, 42);
});
```
The latter can be easily perfomed by a bytecode manipulation tool (cf.
#1147).
It also refactors the factory methods that create
`EntryMessage/ExitMessage`s to be low-garbage.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]