Re: Feature Request: Named Arguments for Structured Logging such as JSON

2024-04-08 Thread Volkan Yazıcı
As Ralph states, this is already supported by JSON Template Layout (JTL). (Note that `JsonLayout` is deprecated in favor of `JsonTemplateLayout`.) But Ralph's statement needs a correction: You don't need to fallback to Pattern

Re: Feature Request: Named Arguments for Structured Logging such as JSON

2024-04-07 Thread Ralph Goers
I wasn’t aware GoLang had a “standard” logger. Last time I checked GoLang’s logging library was awful. Log4j 2 has supported what you want ever since Json Template Layout was added. See https://logging.apache.org/log4j/2.x/manual/json-template-layout.html. To get what you want just specify a pa