日志格式化优化
This commit is contained in:
parent
20ab65012a
commit
530e23a6de
@ -72,7 +72,7 @@ public class BeetlTemplateEngine extends AbstractTemplateEngine {
|
||||
template.binding(objectMap);
|
||||
template.renderTo(fileOutputStream);
|
||||
}
|
||||
LOGGER.debug("模板:" + templatePath + "; 文件:" + outputFile);
|
||||
LOGGER.debug("模板:{}; 文件:{}", templatePath, outputFile);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -52,7 +52,7 @@ public class EnjoyTemplateEngine extends AbstractTemplateEngine {
|
||||
BufferedWriter writer = new BufferedWriter(ow)) {
|
||||
writer.append(str);
|
||||
}
|
||||
LOGGER.debug("模板:" + templatePath + "; 文件:" + outputFile);
|
||||
LOGGER.debug("模板:{}; 文件:{}", templatePath, outputFile);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -51,7 +51,7 @@ public class FreemarkerTemplateEngine extends AbstractTemplateEngine {
|
||||
try (FileOutputStream fileOutputStream = new FileOutputStream(outputFile)) {
|
||||
template.process(objectMap, new OutputStreamWriter(fileOutputStream, ConstVal.UTF8));
|
||||
}
|
||||
LOGGER.debug("模板:" + templatePath + "; 文件:" + outputFile);
|
||||
LOGGER.debug("模板:{}; 文件:{}", templatePath, outputFile);
|
||||
}
|
||||
|
||||
|
||||
|
@ -72,7 +72,7 @@ public class VelocityTemplateEngine extends AbstractTemplateEngine {
|
||||
BufferedWriter writer = new BufferedWriter(ow)) {
|
||||
template.merge(new VelocityContext(objectMap), writer);
|
||||
}
|
||||
LOGGER.debug("模板:" + templatePath + "; 文件:" + outputFile);
|
||||
LOGGER.debug("模板:{}; 文件:{}", templatePath, outputFile);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user