How to print Nacos startup information in Spring Boot?

In a Spring Boot project using Nacos as the configuration center and service discovery component, you can set the logging level for Nacos by configuring logging.level.com.alibaba.nacos in the application.properties or application.yml file.

For example, add the following configuration in the application.properties file.

# 设置Nacos相关的日志级别为DEBUG
logging.level.com.alibaba.nacos=DEBUG

This way, you can print the startup information of Nacos into the logs.

bannerAds