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 {
11
11
private final Logger log ;
12
12
13
13
Slf4jNotifier (final String name ) {
14
- this .log = LoggerFactory .getLogger ("WireMock " + name );
14
+ this .log = LoggerFactory .getLogger ("WireMock. " + name );
15
15
}
16
16
17
17
@ Override
Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ void outputsWireMockLogs(final CapturedOutput capturedOutput)
85
85
.build (),
86
86
HttpResponse .BodyHandlers .ofString ());
87
87
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" );
88
91
assertThat (capturedOutput .getAll ())
89
92
.as ("Must contain debug logging for WireMock" )
90
93
.contains ("Matched response definition:" );
You can’t perform that action at this time.
0 commit comments