Reputation: 1
Question: Info logs are not output in the subpackage (C2). Error log output from C2.
Project structure enter image description here
application-local.yml
logging:
config: classpath:log4j2-prd.xml
level:
root: error
com.A.B: error
com.A.B.C2: info
jdbc.sqlonly: error
jdbc.resultsettable: error
org.springframework.data.redis: error
org.springframework.web: error
com.zaxxer.hikari.HikariDataSource: error
com.zaxxer.hikari.HikariConfig: error
com.zaxxer.hikari: error
: import org.slf4j.Logger; : private static Logger logger = LoggerFactory.getLogger(####); : logger.info("Info log Test");
how to print info log
Upvotes: 0
Views: 136