Hello. I've got a wiremock server runing via java spring aplication in intellij. With some Transformers, and many (dozens) stubmappings in src/files/stub as .json files.
Everything runs ok, but I would like, if posible, the log of runing wiremock returns some info about the file that originated the response to each request. Using a class that extends ResponseDefinitionTransformerV2 I am able to log the request, response, and even the uuid of the stub; but I would like to log the file.json that contains that stubmapping.
I saw that JsonFileMappingsSource in loadMappingsInto method it loads all json files, asign each stubmap an uuid , and even store the file and uuid of the stub in a "StubMappingFileMetadata"
I would like to access that StubMappingFileMetadata in a Transformer (or something like that, or in a EventListener). Or access the JsonFileMappingsSource in Transformer, via autowired maybe.
Any idea would be apreciated.
Sorry if question is silly or confusing. Thanks in advance