log.error(msg)和log.error(msg,e)的显示区别
Posted Fight With Me!!!
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了log.error(msg)和log.error(msg,e)的显示区别相关的知识,希望对你有一定的参考价值。
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)的显示区别的主要内容,如果未能解决你的问题,请参考以下文章
PHP 7 - error_log 中没有记录异常。 error_log 根本没有得到处理