StringWriter errors = new StringWriter(); e.printStackTrace(new PrintWriter(errors)); logger.error("downalod exception:"+e.getMessage()+"\t"+errors.toString());
log4j 打印堆栈信息
姓名 | |
邮箱 | |
URL | |
李岩 java lucene 搜索 nosql hadoop 博客 mongodb
StringWriter errors = new StringWriter(); e.printStackTrace(new PrintWriter(errors)); logger.error("downalod exception:"+e.getMessage()+"\t"+errors.toString());
姓名 | |
邮箱 | |
URL | |