- 论坛徽章:
- 0
|
本帖最后由 wz64050010 于 2016-12-07 15:02 编辑
麻烦请问 想取一段时间内的日志 catalinna.out
时间类型为2016-12-02 10:50,想三分钟一取。。里面有java抛的异常 请教应该怎么写?用sed 匹配发现有的时候没有起始时间点的日志会打不出来 请教各位大神
大致数据为:
2016-12-02 10:42:07,972 [http-apr-8080-exec-11] INFO c.h.o.services.ApplyDataTempService method=ApplyDataTempService.getPersonalInfoF
romTemp(..) thirdUserId=793, apply_id=300015 - {cost_time=0, args_params=[{"id":803,"tUserId":793,"applyId":300015,"applyType":"2","isVail":"Y
","createPre":"xloan3_web","createDate":"Dec 1, 2016 7:43:50 PM","updatePre":"xloan3_web","updateDate":"Dec 1, 2016 7:45:03 PM","applyDataJson
":"{\"chiName\":\"刘婷婷\",\"idCardNum\":\"210682199205112768\",\"marriageState\":\"MARRIED\",\"province\":\"110000\",\"city\":\"110100\",\"ar
ea\":\"110108\",\"liveAddr\":\"清河街道\",\"incomeRange\":\"FIVETOONE\",\"hasEstate\":\"Y\",\"hasCar\":\"N\",\"degree\":4}"}], return=[{"chiNa
me":"刘婷婷","idCardNum":"210682199205112768","marriageState":"MARRIED","province":"110000","city":"110100","area":"110108","liveAddr":"清河街
道","incomeRange":"FIVETOONE","hasEstate":"Y","hasCar":"N","degree":4}]}
2016-12-02 10:42:07,973 [http-apr-8080-exec-11] INFO c.h.o.services.LoanMaterialService method=LoanMaterialService.findIdCardInfo(..)
thirdUserId=793, apply_id=300015 - {cost_time=16, args_params=[null,793,300015], return=[{"idCard":"210682199205112768","realName":"刘婷婷","
proStatus":3,"marriageState":"MARRIED"}]}
2016-12-02 10:42:07,973 [http-apr-8080-exec-11] INFO c.h.o.c.LoanMaterialController method=LoanMaterialController.findIdCardInfo(..)
thirdUserId=793, apply_id=300015 - {cost_time=17, args_params=[], return=[{"status":"20000","message":"success","data":{"idCard":"210682199205
112768","realName":"刘婷婷","proStatus":3,"marriageState":"MARRIED"}}]}
2016-12-02 10:42:12,924 [http-apr-8080-exec-2] INFO c.h.o.c.LoanMaterialController method=LoanMaterialController.getCompanyIndustryLi
st() thirdUserId=793, apply_id=300015 - start
2016-12-02 10:42:12,924 [http-apr-8080-exec-2] INFO c.h.o.services.LoanMaterialService method=LoanMaterialService.getCompanyIndustryL
ist() thirdUserId=793, apply_id=300015 - start
2016-12-02 10:42:12,924 [http-apr-8080-exec-2] INFO c.h.o.services.LoanMaterialService method=LoanMaterialService.getCompanyIndustryL
ist() thirdUserId=793, apply_id=300015 - {cost_time=0, args_params=[], return=[[{"code":"1","msg":"制造业"},{"code":"2","msg":"批发业"},{"code
":"3","msg":"零售业"},{"code":"4","msg":"餐饮业"},{"code":"5","msg":"软件及咨询服务"},{"code":"6","msg":"建筑工程"},{"code":"7","msg":"物流运
输"},{"code":"8","msg":"住宿及旅游"},{"code":"9","msg":"政府及事业单位"},{"code":"10","msg":"金融业"},{"code":"11","msg":"其他"}]]}
2016-12-02 10:42:12,924 [http-apr-8080-exec-2] INFO c.h.o.c.LoanMaterialController method=LoanMaterialController.getCompanyIndustryLi
st() thirdUserId=793, apply_id=300015 - {cost_time=0, args_params=[], return=[{"status":"20000","message":"success","data":[{"code":"1","msg":
"制造业"},{"code":"2","msg":"批发业"},{"code":"3","msg":"零售业"},{"code":"4","msg":"餐饮业"},{"code":"5","msg":"软件及咨询服务"},{"code":"6",
"msg":"建筑工程"},{"code":"7","msg":"物流运输"},{"code":"8","msg":"住宿及旅游"},{"code":"9","msg":"政府及事业单位"},{"code":"10","msg":"金融业
"},{"code":"11","msg":"其他"}]}]}
2016-12-02 10:42:14,707 [http-apr-8080-exec-6] INFO c.h.o.c.CreditAuthController method=CreditAuthController.creditAuthTaoBao(..) thi
rdUserId=821, apply_id=300040 - start
2016-12-02 10:46:37,203 [taskExecutor-5] ERROR c.h.o.services.OnlineLoanSignService - 签署合同错误,发生异常,userId={},applyId={},agr
eementType={}
java.lang.NullPointerException: null
at java.lang.String.replace(String.java:2240)
at com.houbank.onlinecredit.services.OnlineLoanSignService.replacePhaseTemplateValue(OnlineLoanSignService.java:600)
at com.houbank.onlinecredit.services.OnlineLoanSignService.signContract(OnlineLoanSignService.java:174)
at com.houbank.onlinecredit.services.OnlineLoanSignService$$FastClassBySpringCGLIB$$66c70d76.invoke(<generated>
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
at com.houbank.onlinecredit.aspectj.AbstractLogAspect.logMethodArgsReturn(AbstractLogAspect.java:74)
at com.houbank.onlinecredit.aspectj.ServiceLogAspect.notifyCreditAccountStatusFail(ServiceLogAspect.java:21)
at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:49
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:6
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:16
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
at com.houbank.onlinecredit.services.OnlineLoanSignService$$EnhancerBySpringCGLIB$$77c83aa6.signContract(<generated>
at com.houbank.onlinecredit.services.LoanAuditService.signInsContract(LoanAuditService.java:376)
at com.houbank.onlinecredit.services.LoanAuditService.sendEContractInfo(LoanAuditService.java:301)
at com.houbank.onlinecredit.services.LoanAuditService$$FastClassBySpringCGLIB$$e57b19a9.invoke(<generated>
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
at com.houbank.onlinecredit.aspectj.AbstractLogAspect.logMethodArgsReturn(AbstractLogAspect.java:74)
at com.houbank.onlinecredit.aspectj.ServiceLogAspect.notifyCreditAccountStatusFail(ServiceLogAspect.java:21)
at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
类似这种
|
|