关关闭
[2012-11-14 09:31:54,554] InfB2cDdztSServiceImpl.java:145 INFO DirtyData infB2cDdztS.getB2cId():96889
[2012-11-14 09:31:54,554] InfB2cDdztSServiceImpl.java:151 ERROR org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
[2012-11-14 09:31:54,555] LoggingJobHistoryPlugin.java:470 INFO Job DEFAULT.b2cDdztVIPCDDetails fired (by trigger DEFAULT.b2cDdztVIPCDTrigger) at: 09:31:54 11/14/2012
[2012-11-14 09:31:54,557] JobRunShell.java:207 INFO Job DEFAULT.b2cDdVIPCDDetails threw a JobExecutionException:
[2012-11-14 09:31:54,558] LoggingJobHistoryPlugin.java:498 WARN Job DEFAULT.b2cDdVIPCDDetails execution failed at 09:31:54 11/14/2012 and reports: java.lang.reflect.InvocationTargetException
[2012-11-14 09:31:54,655] LoggingJobHistoryPlugin.java:470 INFO Job DEFAULT.b2cTsydhFVIPCDDetail fired (by trigger DEFAULT.b2cTsydhFVIPCDTrigger) at: 09:31:54 11/14/2012
[2012-11-14 09:31:54,663] LoggingJobHistoryPlugin.java:514 INFO Job DEFAULT.b2cTsydhFVIPCDDetail execution complete at 09:31:54 11/14/2012 and reports: null
[2012-11-14 09:31:54,739] LoggingJobHistoryPlugin.java:514 INFO Job DEFAULT.b2cDdztVIPCDDetails execution complete at 09:31:54 11/14/2012 and reports: null
[2012-11-14 09:31:54,766] LoggingJobHistoryPlugin.java:470 INFO Job DEFAULT.wmsOqcServerDADetail fired (by trigger DEFAULT.wmsOqcServerDATrigger) at: 09:31:54 11/14/2012
[2012-11-14 09:31:54,774] LoggingJobHistoryPlugin.java:514 INFO Job DEFAULT.wmsOqcServerDADetail execution complete at 09:31:54 11/14/2012 and reports: null
[2012-11-14 09:31:54,866] LoggingJobHistoryPlugin.java:514 INFO Job DEFAULT.b2cDdztVIPDADetails execution complete at 09:31:54 11/14/2012 and reports: null
[2012-11-14 09:31:54,944] LoggingJobHistoryPlugin.java:470 INFO Job DEFAULT.b2cDdVIPBJDetails fired (by trigger DEFAULT.b2cDdVIPBJTrigger) at: 09:31:54 11/14/2012
[2012-11-14 09:31:55,070] InfB2cDdSServiceImpl.java:213 ERROR java.lang.RuntimeException: com.tms.tmsinterface.common.exceptions.InfBusinessException
像上边格式的日志,经常程序出问题,需要取某段日志,用如下命令:
cat tms_service.log|sed -n '/^\[.*\]/p'|awk 'BEGIN{FS=" "}substr($1,2,19)>"2012-11-14 09:31:17"&&substr($1,2,19)<"2012-11-14 09:32:17"{print $0}'