Re: Log4j2 configuration format with best coverage

Ralph Goers <[email protected]>
Newsgroups gmane.comp.jakarta.log4j.user
Message-ID <[email protected]>
This deserves a really long answer that I should add to my blog site. I’ll post a shorter answer on stackoverflow.

Ralph

> On Oct 25, 2021, at 4:07 AM, Stamatis Zampetakis <[email protected]> wrote:
> 
> Hi all,
> 
> I posted the following question on stackoverflow a few days ago [1]. Any
> feedback is much appreciated.
> 
> Log4j2 currently supports 4 configuration formats: XML, JSON, YAML, and
> properties syntax. I couldn't find in the documentation if all the formats
> are exactly equivalent in terms of feature coverage.
> 
> Is it possible to use all features of Log4j2 in every format or are there
> certain formats that lack some expressiveness?
> 
> I vaguely remember in the past that I had some trouble setting up a feature
> in the property syntax while it was working in the XML syntax; it could be
> my lack of knowledge at the time instead of a missing feature but if
> somebody can provide a reference about equivalence or not it would be
> helpful.
> 
> Best,
> Stamatis
> 
> [1]
> https://stackoverflow.com/questions/69659109/log4j2-configuration-format-with-best-coverage
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.