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

1 Answer

0 votes
by (4.7k points)

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

Share:- Whatsapp Facebook Facebook


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

Categories

...