Spring boot uses logback for log output by default.
There are two other ways to configure a configuration file by Application.properties.
The other is configured by logback.xml the configuration file.
The first thing to say is that both application.properties and logback.xml are placed under the Src/main/resources directory.
First of all, tell the application.properties.
Just add the following attribute Logging.level.root=warn to let the log output only warn and above level information
The other is to add the contents of the Logback.xml file as shown in the following figure.
The configuration description in the figure is to generate the configuration file on disk, C:/spring.log
<property name= "Log_file" value= "C:/spring.log"/> <include resource=
"org/springframework/boot/" Logging/logback/file-appender.xml "/>
If you do not want to generate c:/spring.log, you do not add the above configuration