首页 > 解决方案 > 调试缓存:45 - 无法在缓存中找到用于 log4j 使用的日志中的范围报告的模板

问题描述

2020-06-05 09:13:30 调试缓存:45 - 在缓存中找不到“index.ftl”的模板(“en”,UTF-8,已解析);将尝试加载它。2020-06-05 09:13:30 调试缓存:45 - TemplateLoader.findTemplateSource(“index_en.ftl”):未找到 2020-06-05 09:13:30 调试缓存:45 - TemplateLoader.findTemplateSource(“index. ftl"): Found 2020-06-05 09:13:30 DEBUG cache:45 - 从 "jar:file:/C:/Users" 加载 "index.ftl"("en", UTF-8, parsed) 的模板/sadakarp/.m2/repository/E1SmapiUiAutomation/E1SmapiUiAutomation/0.0.1-SNAPSHOT/E1SmapiUiAutomation-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/com/aventstack/extentreports/view/html-report/index.ftl “ 2020-06-05 09:13:31 调试缓存:45 - 无法在缓存中找到“head.ftl”的模板(“en”,UTF-8,已解析);将尝试加载它。2020-06-05 09:13:31 调试缓存:45 - TemplateLoader.findTemplateSource(“head_en.ftl”):未找到 2020-06-05 09:13:31 调试缓存:45 - TemplateLoader.findTemplateSource(“head. ftl"): Found 2020-06-05 09:13:31 DEBUG cache:45 - 从“jar:file:/C:/Users”加载“head.ftl”(“en”, UTF-8, parsed) 的模板/sadakarp/.m2/repository/E1SmapiUiAutomation/E1SmapiUiAutomation/0.0.1-SNAPSHOT/E1SmapiUiAutomation-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/com/aventstack/extentreports/view/html-report/head.ftl “ 2020-06-05 09:13:31 调试缓存:45 - 无法在缓存中找到“nav.ftl”的模板(“en”,UTF-8,已解析);将尝试加载它。2020-06-05 09:13:31 调试缓存:45 - TemplateLoader.findTemplateSource(“nav_en.ftl”):未找到 2020-06-05 09:13:31 调试缓存:45 - TemplateLoader。findTemplateSource(“nav.ftl”):找到 2020-06-05 09:13:31 调试缓存:45 - 从“jar:文件”加载“nav.ftl”(“en”,UTF-8,已解析)的模板: /C:/Users/sadakarp/.m2/repository/E1SmapiUiAutomation/E1SmapiUiAutomation/0.0.1-SNAPSHOT/E1SmapiUiAutomation-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/com/aventstack/extentreports/view/html-报告/nav.ftl” 2020-06-05 09:13:31 调试缓存:45 - 在缓存中找不到“test-view/test-view.ftl”的模板(“en”,UTF-8,已解析); 将尝试加载它。2020-06-05 09:13:31 调试缓存:45 - TemplateLoader.findTemplateSource(“test-view/test-view_en.ftl”):未找到 2020-06-05 09:13:31 调试缓存:45 - TemplateLoader .findTemplateSource("test-view/test-view.ftl"): Found 2020-06-05 09:13:31 DEBUG cache:45 - 加载模板为“ 解析)来自“jar:file:/C:/Users/sadakarp/.m2/repository/E1SmapiUiAutomation/E1SmapiUiAutomation/0.0.1-SNAPSHOT/E1SmapiUiAutomation-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/com/ aventstack/extentreports/view/html-report/test-view/test-view-charts.ftl” 2020-06-05 09:13:31 调试缓存:45 - 在缓存中找不到“test-view/”的模板bdd.ftl"("en", UTF-8, 已解析); 将尝试加载它。2020-06-05 09:13:31 调试缓存:45 - TemplateLoader.findTemplateSource(“test-view/bdd_en.ftl”):未找到 2020-06-05 09:13:31 调试缓存:45 - TemplateLoader.findTemplateSource (“test-view/bdd.ftl”):发现 2020-06-05 09:13:31 调试缓存:45 - 加载“test-view/bdd.ftl”模板(“en”,UTF-8,已解析) 来自“jar:file:/C:/Users/sadakarp/. 发现 2020-06-05 09:13:31 DEBUG cache:45 - 从“jar:file:/C:”加载“author-view/author-view.ftl”(“en”,UTF-8,已解析)的模板: /Users/sadakarp/.m2/repository/E1SmapiUiAutomation/E1SmapiUiAutomation/0.0.1-SNAPSHOT/E1SmapiUiAutomation-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/com/aventstack/extentreports/view/html-report/author -view/author-view.ftl" 2020-06-05 09:13:31 DEBUG cache:45 - 在缓存中找不到“exception-view/exception-view.ftl”的模板(“en”,UTF- 8、解析);将尝试加载它。2020-06-05 09:13:31 调试缓存:45 - TemplateLoader.findTemplateSource(“exception-view/exception-view_en.ftl”):未找到 2020-06-05 09:13:31 调试缓存:45 - TemplateLoader .findTemplateSource("exception-view/exception-view.ftl"): 发现 2020-06-05 09:13:31 DEBUG 缓存:45 - 从 "jar:file:/C:/Users/sadakarp/.m2/repository/E1SmapiUiAutomation/E1SmapiUiAutomation/ 加载 "exception-view/exception-view.ftl"("en", UTF-8, parsed) 模板0.0.1-SNAPSHOT/E1SmapiUiAutomation-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/com/aventstack/extentreports/view/html-report/exception-view/exception-view.ftl" 2020-06-05 09:13:31 调试缓存:45 - 在缓存中找不到“dashboard-view/dashboard-view.ftl”的模板(“en”,UTF-8,已解析);将尝试加载它。2020-06-05 09:13:31 调试缓存:45 - TemplateLoader.findTemplateSource(“dashboard-view/dashboard-view_en.ftl”):未找到 2020-06-05 09:13:31 调试缓存:45 - TemplateLoader .findTemplateSource("dashboard-view/dashboard-view.ftl"): 发现 2020-06-05 09:13:31 DEBUG cache:45 - 为“加载模板”

标签: mavenlog4jreportextent

解决方案


所以对于这个问题,我只是在我的 log4j.properties 中添加了一行,这次我没有添加错误行:log4j.logger.freemarker.cache = INFO, CONSOLE


推荐阅读