Last active
February 18, 2022 00:43
-
-
Save ktprezes/31f2dbdee2e1298f0dd65eaf1df39864 to your computer and use it in GitHub Desktop.
log4j2 troubleshooting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to troubleshoot the log4j (ver1.*) it was enough to provide the: | |
-Dlog4j.debug | |
option to the JVM, e.g.: | |
java -Dlog4j.debug -jar test.jar | |
the equivilent option for log4j2 is: | |
-Dlog4j2.debug | |
or: | |
-Dorg.apache.logging.log4j.simplelog.StatusLogger.level=trace | |
see e.g.: | |
https://stackoverflow.com/questions/19574413/log4j-2-how-get-log4js-debug-messages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment