简体   繁体   中英

Where to Set system property 'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show Log4j2 internal initialization logging

I need help on this matter. I am not sure where to set system property and what is the syntax. Is that hibernate.cfg.xml or hibernate.hbm.xml or pom.xml?

  1. You can enable log4j2 internal status logging by setting system property in this way:
java -Dorg.apache.logging.log4j.simplelog.StatusLogger.level=TRACE yourApp
  1. In Servers tab, double click on tomcat server -> click on open launch configuration -> click on (x)=Arguments

In VMarguments add the following:

-Dorg.apache.logging.log4j.simplelog.StatusLogger.level=TRACE

See also this section of the documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM