SpringBoot sets the log level of a package or a class

Table of contents

1. Use the log annotation to open the log @Slf4

2. Set the package log level

3. Set the log level of the class


 

1. Use the log annotation to open the log @Slf4

2. Set the package log level

For example, I want to close: the log of the scheduled task package.

3. Set the log level of the class

 

 

 

Guess you like

Origin blog.csdn.net/wenxingchen/article/details/131891938