Issue
I want to build a simple Spring Web Client who send message from stdin but the WebClient show all debug informations on stdout.
How to disable the logs generated by Webclient ?
WebClient webclient = WebClient.builder().baseUrl("http://localhost:8080/").build();
webClient.post().uri(uriBuilder -> uriBuilder.path("/test").queryParam("id",1).build()).retrieve().bodyToMono(Log.class).block();
Solution
you can customize your logs as you want. as the image you mention,
Go to the application.properties put logger values to disable as OFF
[io.netty]
logging.level.io.netty=off
do you want to fully disable all logs from your project, disable root
below.
logging.level.root=off
Answered By - Mafei
Answer Checked By - Katrina (JavaFixing Volunteer)