-
We have an application that uses log4j's Pattern Layout and have created custom Pattern Converters to handle certain use cases (e.g. logging HTTP headers, parameters, etc.). I'm trying to add support for JSON Template Layout to the application and wish to support the same logging features available with our custom Pattern Converters. I know log4j JSON Template Layout supports Pattern resolver as an escape-hatch solution. However, I'd like to know if there's a recommended way to do this without using the Pattern resolver? Will I need to write an equivalent custom Event Resolver that does the same thing as the existing custom Pattern Converters? Thanks for any suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@kf-ping, thanks for reaching out to us. It always helps us a lot to learn how users integrate Log4j into their systems.
Curious, would you mind providing a little bit more detail about these converters, please? Some examples of what they inject will help a lot. This will also help us to understand the type these converters will preferably output in a structured layout such as JTL.
Well, it depends. If your custom converters...
|
Beta Was this translation helpful? Give feedback.
No. You better implement your custom thread context data provider.