elasticsearch/qa/logging-config
Przemyslaw Gomulka 3516cdfe47
Add Configuration to PatternLayout (#97679)
in 2.17.2 (patch release) log4j has made a refactoring that requires a Configuration to be manually
passed into the created PatternLayout
If the Configuration is not passed, the System Variable lookup will not work
This results in cluster.name field not being populated in logs if ESv7 layout was used on ESv8 cluster (cloud)

This commit creates a PatternLayout with a DefaultConfiguration (the same was used previous to the refactoring)
Also adds back tests that verifies ESv8 cluster with ESv7 logging config. We still have that situation in the cloud so it is better to have tests around this.

relates apache/logging-log4j2#1551
2023-07-26 12:32:37 +02:00
..
src Add Configuration to PatternLayout (#97679) 2023-07-26 12:32:37 +02:00
build.gradle Add Configuration to PatternLayout (#97679) 2023-07-26 12:32:37 +02:00
es-v7-log4j2.properties Add Configuration to PatternLayout (#97679) 2023-07-26 12:32:37 +02:00