README.md
2.01 KB
java.loglevel
修改 java 模块的日志级别: logback.xml
文件
Role Variables
参数:
-
log_level
:INFO
(或者WARN
) -
deploy_path
:/home/master
后面的路径 -
context
:.tomcat/webapps
后面的路径
支持的日志
-
gateway
:/home/master/yoho-gateway/deploy/.tomcat/webapps/gateway/WEB-INF/classes/logback.xml
-
product
:/home/master/yohobuy-product/deploy/.tomcat/webapps/product/WEB-INF/classes/logback.xml
-
message
:/home/master/yoho-message/deploy/.tomcat/webapps/message/WEB-INF/classes/logback.xml
-
sns
:/home/master/yoho-sns/deploy/.tomcat/webapps/sns/WEB-INF/classes/logback.xml
-
order
:/home/master/yohobuy-order/deploy/.tomcat/webapps/order/WEB-INF/classes/logback.xml
-
promotion
:/home/master/yohobuy-promotion/deploy/.tomcat/webapps/promotion/WEB-INF/classes/logback.xml
-
users
:/home/master/yoho-users/deploy/.tomcat/webapps/users/WEB-INF/classes/logback.xml
-
resources
:/home/master/yohobuy-resources/deploy/.tomcat/webapps/resources/WEB-INF/classes/logback.xml
-
bigdata
:/home/master/yohobuy-bigdata/deploy/.tomcat/webapps/bigdata/WEB-INF/classes/logback.xml
-
activity
:/home/master/yohobuy-activity/deploy/.tomcat/webapps/activity/WEB-INF/classes/logback.xml
-
risk
:/home/master/yohobuy-risk/deploy/.tomcat/webapps/risk/WEB-INF/classes/logback.xml
-
wechat
:/home/master/yohobuy-wechat/deploy/.tomcat/webapps/wechat/WEB-INF/classes/logback.xml
-
uic
:/home/master/uic/deploy/.tomcat/webapps/uic/WEB-INF/classes/logback.xml
-
brower
:/home/master/yohobuy-brower/deploy/.tomcat/webapps/brower/WEB-INF/classes/logback.xml
-
yohosearch
:/home/master/yoho-search-service/deploy/.tomcat/webapps/yohosearch/WEB-INF/classes/logback.xml
Example Playbook
- hosts: java-gateway
vars:
deploy_path: yoho-gateway
context: gateway
remote_user: master
roles:
- java-loglevel
Author Information
chunhua.zhang