简体   繁体   中英

Spring / Spring Tool Suite: how disable a warn log category

I need to disable the warn log category for org.springframework.core.LocalVariableTableParameterNameDiscoverer

I'm using STS version 4. How and where I need to act in preferences?

See https://github.com/spring-projects/spring-framework/issues/29612

We can set logging level in application.propertirs file using 'logging.level.*=LEVEL' where 'LEVEL' is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. The root logger can be configured using logging.level.root.

Example application.properties:

logging.level.root=WARN
logging.level.org.springframework.web=DEBUG
logging.level.org.hibernate=ERROR

reference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM