• Register

Share:- Whatsapp Facebook Facebook

------------------------------------- Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

0 votes
5 views
Can you control logging with Spring Boot? How?
in Spring Boot by (4.4k points)

1 Answer

0 votes

Yes, we can control logging with Spring Boot.  We can specify the log levels on application.properties file. Spring Boot loads application.properties file when it exists in the classpath and it can be used to configure both Spring Boot and application code.

Spring Boot uses Commons Logging for all internal logging and we can change log levels by adding following in the application.properties file:-

logging.level.org.springframework=DEBUG
logging.level.com.demo=INFO

by (4.4k points)
...