I encountered a library that was published with log4j2.xml inside its jar. Then other applications using it without specifying -Dlog4j.configurationFile
log4j2.xml
-Dlog4j.configurationFile