Spring Rooã®åä½(15) - logging setupã³ãã³ã
logging setupã³ãã³ã
ãªãã¡ã¬ã³ã¹
ãªãã·ã§ã³
--package [package] (å¿ é )
- ãã°åºåã¬ãã«ãè¨å®ãããããã±ã¼ã¸ç¨®é¡ãæå®ãã
- [package]ã«ã¯ALL_SPRING, AOP, PERSISTENCE, PROJECT, ROOT, SECURITY, TRANSACTIONS, WEBã®ãããããæå®ãã
- åããã±ã¼ã¸ç¨®é¡ã¨è¨å®å¤ã¯ä»¥ä¸ã®ã¨ãã
- ROOT log4j.rootLogger=DEBUG, stdout
- ALL_SPRING log4j.logger.org.springframework=DEBUG
- AOP log4j.logger.org.springframework.aop=DEBUG, log4j.logger.org.springframework.aspects=DEBUG
- PERSISTENCE log4j.logger.org.springframework.orm=DEBUG
- SECURITY log4j.logger.org.springframework.security=DEBUG
- TRANSACTIONS log4j.logger.org.springframework.transactions=DEBUG
- WEB log4j.logger.org.springframework.web=DEBUG
- PROJECT log4j.logger.com.example.sandbox=DEBUG (projectã³ãã³ãã®--topLevelPackageã§æå®ããå¤)
--level [level] (å¿ é )
- ãã°åºåã¬ãã«ã[level]ã«è¨å®ãã
- [level]ã«ã¯TRACE, DEBUG, INFO, WARN, ERROR, FATALã®ãããããæå®ãã
使ãæ¹
roo> logging setup --package ROOT --level INFO