File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
main/java/org/wiremock/spring/internal Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class Slf4jNotifier implements Notifier {
1111 private final Logger log ;
1212
1313 Slf4jNotifier (final String name ) {
14- this .log = LoggerFactory .getLogger ("WireMock " + name );
14+ this .log = LoggerFactory .getLogger ("WireMock. " + name );
1515 }
1616
1717 @ Override
Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ void outputsWireMockLogs(final CapturedOutput capturedOutput)
8585 .build (),
8686 HttpResponse .BodyHandlers .ofString ());
8787 assertThat (response .body ()).isEqualTo ("Hello World!" );
88+ assertThat (capturedOutput .getAll ())
89+ .as ("Must contain correct logger name" )
90+ .contains ("WireMock.todo-service" , "WireMock.user-service" );
8891 assertThat (capturedOutput .getAll ())
8992 .as ("Must contain debug logging for WireMock" )
9093 .contains ("Matched response definition:" );
You can’t perform that action at this time.
0 commit comments