I see that there are instructions on enabling verbose logging for wiremock when running it in standalone fashion at http://wiremock.org/running-standalone.html (see --verbose).
How do I enable the same when starting it from a java code?
WireMock can be used to run as a standalone mock server or use it as a library by any JVM application. WireMock has web server at its core that can be used to serve canned responses to particular requests (stubbing) and that captures incoming requests so that they can be checked later (verification).
A web service test double for all occasions. License. Apache 2.0.
In software, verbose logging is the practice of recording to a persistent medium as much information as you possibly can about events that occur while the software runs. It's also worth mentioning that verbose logging is generally a mode that you can toggle on and off.
If you're using a JUnit Rule, you can set the notifier to verbose mode like this:
@Rule
public WireMockRule serviceMock = new WireMockRule(new WireMockConfiguration().notifier(new Slf4jNotifier(true)));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With