java命令行指定log4j2

java -Dlog4j.configurationFile=directory/file.xml

原文地址:https://www.cnblogs.com/qiumingcheng/p/8365575.html