Spring-boot by default

In the application, spring-bootI can specify my own log file with

java -jar spring-boot-app.jar --logging.file=/home/ubuntu/spring-boot-app.log

But if I do not indicate where they are going?

I could not find it in any of the following folders:

/tmp/
/var/log/
~/

I do not have spring-boot-starter-loggingor any additional journal dependencies.

I was hoping to have something similar catalina.out, since the built-in Tomcat is running in the default configuration:

INFO 10374 --- [main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8100 (http)
+11
source share
1 answer

Spring Boot uses Commons Logging for all internal protocols, but leaves the open log implementation open.

Java Util Logging, Log4J, Log4J2 Logback. .

Spring .

- . , , , .

+13

Source: https://habr.com/ru/post/1692333/


All Articles