<#C03N1E6HFPY|help> Hello, I am writing an extens...
# wiremock-java
c
#help Hello, I am writing an extension in Java. What is the easiest way for me to add information into the logging from my extension class? I tried appending SubEvents using the SubEvent info/warning/error events but I don’t see anything logged with
--verbose
. What is the recommended way for me to log info/warnings and errors from my extension? Thanks
t
We’re in kind of a transitional phase at the moment. Adding sub-events is the right thing to do, and these will appear in the request log -
/__admin/requests
. But they’re not emitted in the console/slf4j log yet so if you need that then the best way is to call
notifier().info(…)
(or
error(…)
)
c
OK, thanks @Tom. Nice to meet you, WireMock is great!
t
Thanks, and nice to meet you too!