java log 异常 堆栈信息打印
程序员文章站
2022-07-15 15:48:37
...
StringWriter errors = new StringWriter();
e.printStackTrace(new PrintWriter(errors));
logger.error("downalod exception:"+e.getMessage()+"\t"+errors.toString());