log.error(msg)和log.error(msg,e)的顯示區別
阿新 • • 發佈:2017-10-18
transfer lee process lang rac java error oop kthread
log.error(msg):
[2017-10-18 11:31:07,652] [Thread-7] (CmsCtlDataUploadFileExchange.java:50) ERROR com..prd.task.upload.bjzx.CmsCtlDataUploadFileExchange - java.lang.NullPointerException
log.error(msg,e)
java.lang.NullPointerException at com..upload.bjzx.CmsCtlDataUploadFileExchange.getSyncCTLStrJson(CmsCtlDataUploadFileExchange.java:76) at com.prd.task.upload.bjzx.CmsCtlDataUploadFileExchangeBJZX.transferData(CmsCtlDataUploadFileExchangeBJZX.java:43) at com.prd.task.upload.defaults.CmsCtlDataUploadFileExchange.transferData(CmsCtlDataUploadFileExchange.java:1) at com.framework.task.AbstractUploadFileExchange.loopData(AbstractUploadFileExchange.java:111) at com.framework.task.AbstractUploadFileExchange.process(AbstractUploadFileExchange.java:75) at com.framework.task.FileTaskThreadFramework.lambda$startFileTask$0(FileTaskThreadFramework.java:26) at java.lang.Thread.run(Thread.java:745)
log.error(msg)和log.error(msg,e)的顯示區別