ppkarwasz commented on code in PR #2846:
URL: https://github.com/apache/logging-log4j2/pull/2846#discussion_r1730844143


##########
log4j-core/src/main/java/org/apache/logging/log4j/core/impl/ThreadContextDataInjector.java:
##########
@@ -87,19 +87,33 @@ private static List<ContextDataProvider> 
getServiceProviders() {
         return Collections.unmodifiableList(providers);
     }
 
+    private abstract static class AbstractContextDataInjector implements 
ContextDataInjector {
+
+        protected final List<ContextDataProvider> providers;
+
+        protected AbstractContextDataInjector() {

Review Comment:
   I think this is mostly a question of taste, since the class is `private`.
   
   I switched them to package private in 
https://github.com/apache/logging-log4j2/pull/2846/commits/c475dbf0af351bc30dc7f94e3f943ce4386ca0fa,
 so we don't need any synthetic accessors.



##########
src/changelog/.2.x.x/2331_custom_context_data_in_lookup.xml:
##########
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xmlns="https://logging.apache.org/xml/ns";
+       xsi:schemaLocation="https://logging.apache.org/xml/ns 
https://logging.apache.org/xml/ns/log4j-changelog-0.xsd";
+       type="added">
+  <issue id="2331" link="2330_add_faster_web_app_context_map.xml"/>
+  <description format="asciidoc">Add support for custom context data in `ctx` 
lookup.</description>

Review Comment:
   Fixed in 
https://github.com/apache/logging-log4j2/pull/2846/commits/c475dbf0af351bc30dc7f94e3f943ce4386ca0fa



-- 
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]

Reply via email to