Skip to content

Instantly share code, notes, and snippets.

@ktprezes
Last active February 18, 2022 00:43
Show Gist options
  • Save ktprezes/31f2dbdee2e1298f0dd65eaf1df39864 to your computer and use it in GitHub Desktop.
Save ktprezes/31f2dbdee2e1298f0dd65eaf1df39864 to your computer and use it in GitHub Desktop.
log4j2 troubleshooting
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