Where is the spring disaster recovery log of the loaded embedded Tomcat?

I am using Spring boot 1.3.1 with Tomcat built-in container. I am new to Spring download.

I run as a separate jar via java -jar myApp.jar .

I set the log file and tomcat location in application.properties :

 logging.file=myApp.log server.tomcat.basedir=./tomcat 

However, the application comes out quite often QUIETLY. The log file does not report any output.

So my question is how to enable more verbose application logging, or is it possible to use some method to troubleshoot this situation?

Thanks!

+6
source share
1 answer

You can enable logging through application.properties using properties starting with logging.level . To enable debug logging for everything:

 logging.level.ROOT=DEBUG 

Alternatively, you can enable logging for a specific package (and its subpackages). For instance:

 logging.level.org.apache.tomcat=DEBUG 
+1
source

All Articles