在执行测试期间,我无法在控制台中获取任何线模拟日志
java-wiremock-testNG
使用带有选项--verbose的 java,wiremock 独立在 pod 上启动,在logback.xml文件中为STDOUT 设置level="TRACE"
但是,我在测试中添加了不同的设置 WireMockRule,例如。
new WireMockRule(new WireMockConfiguration()
.notifier(new ConsoleNotifier(true))
.extensions(new ResponseTemplateTransformer(true)));
如果您对如何打开wiremock日志有任何想法或建议,请帮助我。顺便说一句,我在 pod 中看到了 wiremock 日志,但我希望它显示在我的控制台中
2021-12-15 18:36:35.939 Warning: failed to parse the XML document
XML: null
2021-12-15 18:36:40.939 Admin request received: 0.2.1 - GET /mappings