How Can I Debug the Mapping, Request, or Response Being Sent by WireMock?

1.2.0 版本开始,我们将 WireMock 日志设定为 info,并将 WireMock 通知设定为冗长。现在您可以确切知道 WireMock 服务器接收了什么请求,以及选择了哪个匹配的响应定义。

Starting from version 1.2.0, we set WireMock logging to info and set the WireMock notifier to being verbose. Now you can exactly know what request was received by the WireMock server and which matching response definition was picked.

如需关闭该功能,请将 WireMock 日志记录设置为 ERROR,如下所示:

To turn off this feature, set WireMock logging to ERROR, as follows:

logging.level.com.github.tomakehurst.wiremock=ERROR