NutzCN Logo
问答 log4j在centos7日志重复打印,在windows下正常
发布于 1952天前 作者 qq_8af2c940 1204 次浏览 复制 上一个帖子 下一个帖子
标签:
[root@VM_0_11_centos logs]# tail -f catalina.out
12-22 13:34:48.994  DEBUG - (VoiceControlService.java:643)-getServiceData [http-nio-80-exec-4] {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024676852 [http-nio-80-exec-4] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024676852 [http-nio-80-exec-4] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024676852 [http-nio-80-exec-4] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024676852 [http-nio-80-exec-4] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024676852 [http-nio-80-exec-4] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024676852 [http-nio-80-exec-4] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024676852 [http-nio-80-exec-4] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024676852 [http-nio-80-exec-4] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024676852 [http-nio-80-exec-4] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
12-22 13:37:29.180  DEBUG - (UrlMappingImpl.java:101)-get [http-nio-80-exec-2] Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
1024837038 [http-nio-80-exec-2] DEBUG org.nutz.mvc.impl.UrlMappingImpl  - Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
1024837038 [http-nio-80-exec-2] DEBUG org.nutz.mvc.impl.UrlMappingImpl  - Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
1024837038 [http-nio-80-exec-2] DEBUG org.nutz.mvc.impl.UrlMappingImpl  - Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
1024837038 [http-nio-80-exec-2] DEBUG org.nutz.mvc.impl.UrlMappingImpl  - Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
1024837038 [http-nio-80-exec-2] DEBUG org.nutz.mvc.impl.UrlMappingImpl  - Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
1024837038 [http-nio-80-exec-2] DEBUG org.nutz.mvc.impl.UrlMappingImpl  - Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
1024837038 [http-nio-80-exec-2] DEBUG org.nutz.mvc.impl.UrlMappingImpl  - Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
1024837038 [http-nio-80-exec-2] DEBUG org.nutz.mvc.impl.UrlMappingImpl  - Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
1024837038 [http-nio-80-exec-2] DEBUG org.nutz.mvc.impl.UrlMappingImpl  - Found mapping for [POST] path=/send_command_query : MainAction.sendCommandQuery(MainAction.java:32)
12-22 13:37:29.182  DEBUG - (NutIoc.java:164)-get [http-nio-80-exec-2] Get 'mainAction'<class com.glmkk.module.MainAction>
1024837040 [http-nio-80-exec-2] DEBUG org.nutz.ioc.impl.NutIoc  - Get 'mainAction'<class com.glmkk.module.MainAction>
1024837040 [http-nio-80-exec-2] DEBUG org.nutz.ioc.impl.NutIoc  - Get 'mainAction'<class com.glmkk.module.MainAction>
1024837040 [http-nio-80-exec-2] DEBUG org.nutz.ioc.impl.NutIoc  - Get 'mainAction'<class com.glmkk.module.MainAction>
1024837040 [http-nio-80-exec-2] DEBUG org.nutz.ioc.impl.NutIoc  - Get 'mainAction'<class com.glmkk.module.MainAction>
1024837040 [http-nio-80-exec-2] DEBUG org.nutz.ioc.impl.NutIoc  - Get 'mainAction'<class com.glmkk.module.MainAction>
1024837040 [http-nio-80-exec-2] DEBUG org.nutz.ioc.impl.NutIoc  - Get 'mainAction'<class com.glmkk.module.MainAction>
1024837040 [http-nio-80-exec-2] DEBUG org.nutz.ioc.impl.NutIoc  - Get 'mainAction'<class com.glmkk.module.MainAction>
1024837040 [http-nio-80-exec-2] DEBUG org.nutz.ioc.impl.NutIoc  - Get 'mainAction'<class com.glmkk.module.MainAction>
1024837040 [http-nio-80-exec-2] DEBUG org.nutz.ioc.impl.NutIoc  - Get 'mainAction'<class com.glmkk.module.MainAction>
12-22 13:37:29.445  DEBUG - (VoiceControlService.java:38)-voiceControl [http-nio-80-exec-2] {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
1024837303 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
1024837303 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
1024837303 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
1024837303 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
1024837303 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
1024837303 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
1024837303 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
1024837303 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
1024837303 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"semantic":[{"template":"{serivce_name}","score":1,"slots":[{"name":"serivce_name","end":4,"begin":0,"value":"请勿打扰","normValue":"no_disturb"}],"hazard":false,"entrypoint":"ent","intent":"service_intent"}],"shouldEndSession":true,"data":{"result":null},"uuid":"atn016b77af@dx00070f791999a10e01","version":"4.0","sid":"atn016b77af@dx00070f791999a10e01","rc":0,"intentType":"custom","answer":{"text":"请勿打扰模式已开启","type":"T"},"service":"GLMKK.service_control","vendor":"GLMKK","semanticType":0,"sessionIsEnd":"true","state":null,"text":"请勿打扰","category":"GLMKK.service_control"}
12-22 13:37:29.703  DEBUG - (VoiceControlService.java:643)-getServiceData [http-nio-80-exec-2] {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024837561 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024837561 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024837561 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024837561 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024837561 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024837561 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024837561 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024837561 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}
1024837561 [http-nio-80-exec-2] DEBUG com.glmkk.service.VoiceControlService  - {"state":0,"message":"数据请求成功","data":{"check_out":1,"emery_call":0,"safe_status":0,"laundry_serv":0,"waiting":0,"no_disturb":0,"clean_up":1,"door_status":0}}

下面是log4j配置

#root日志
log4j.rootLogger=DEBUG,Console

#控制台日志
log4j.appender.Console=org.apache.log4j.ConsoleAppender 
log4j.appender.CONSOLE.Target=System.out  
log4j.appender.CONSOLE.Threshold=DEBUG 
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%-d{MM-dd HH\:mm\:ss.SSS}  %-5p - (%F:%L)-%M [%t] %m%n

log4j.additivity.*.*=false

log4j.logger.org.quartz.core.QuartzSchedulerThread=WARN
1 回复

去掉
log4j.additivity.*.*=false

添加回复
请先登陆
回到顶部