Hello log4j-users, for the environments i‘d like to have different levels with log4j 2.17. I use arbiter with xml syntax that’s functional:
https://dpaste.com/AQ6MC4AJM *How do I do it with properties syntax?* I tried many options after read https://logging.apache.org/log4j/2.x/manual/configuration.html#Properties. >From this part of the docs: “Unlike the base components, when creating subcomponents you cannot specify an element containing a list of identifiers. Instead, you must define the wrapper element with its type as is shown in the policies definition in the rolling file appender below. You then define each of the subcomponents below that wrapper element, as the TimeBasedTriggeringPolicy and SizeBasedTriggeringPolicy are defined below.” And the example for the wrapping: https://dpaste.com/4T74ZVTMC My try in properties syntax: https://dpaste.com/5F4LSDMAG No errors in the debug logs. But also no creation of the property. The jvm started with option -Denv=test. Thanks for your help! Regards Niko --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org