flogger icon indicating copy to clipboard operation
flogger copied to clipboard

performance optimisation for Log4j2LoggerBackend - get log4j context direct from the logger, and reduce allocations in the common path

Open JerryShea opened this issue 4 months ago • 1 comments

LoggerContext.getContext(false) can be very expensive - instead get the context from the logger. Also reduce work (and allocations) for the common case of no metadata

JerryShea avatar Aug 08 '25 08:08 JerryShea

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Aug 08 '25 08:08 google-cla[bot]