Neel1210 commented on issue #4015:
URL: 
https://github.com/apache/logging-log4j2/issues/4015#issuecomment-3699328268

   Currently, PatternLayout supports a single RegexReplacement element. My 
initial thought was to simply refactor this from a single reference to a 
collection (array/list) of references, allowing for multiple replacement 
policies within the existing framework.
   <img width="1368" height="434" alt="Image" 
src="https://github.com/user-attachments/assets/cd2064a1-b25b-4695-9f46-1d88f63bfc1f";
 />
   
   Regarding your suggestion to introduce a delegating layout that masks the 
output of layout.encode(logEvent): I see the value in that approach, especially 
for composability across different layouts (JSON, XML, etc.). However, I need 
to do some internal research and testing to understand the performance and 
implementation details of a delegating layout.
   
   In the meantime, I feel that expanding the existing RegexReplacement in 
PatternLayout is a viable short-term improvement or should we focus exclusively 
on the delegating layout approach?


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