No log4j2 configuration file found. Using default configuration: logging only errors to the console
问题 $ java -Dlog4j.configuration=file:///path/to/your/log4j2.xml -jar /path/to/your/jar_file.jar Written to the console, you get ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. But, it also looks like the configuration file has been found and was not parsable: log4j:WARN Continuable parsing error 2 and column 31 log4j:WARN Document root element "Configuration", must match DOCTYPE root "null". log4j:WARN Continuable parsing