Loading

How to enable all HTTP Service debug modes? - Enhanced HTTP Wire Logging for Mule 4 APIs

Udgivelsesdato: Jul 25, 2025
Opgave

GOAL

To enable additional HTTP Service logs in a Mule 4 API, considering that you have already enabled the HTTP Wire Logging and it was just not enough to your needs.
 

Trin

You may use the  API´s src/main/resources/log4j2.xml file or Runtime Manager user-interface too, as explained in the HTTP Wire Logging article, to set the DEBUG level log to each of the following packages:

  • com.mulesoft.service.http.impl.service.client.builder.NameResolvingRequestBuilder
    • Log DNS lookup
  • com.mulesoft.service.http.impl.service.client.EEGrizzlyHttpClient
    • Log retry with another IP address
  • com.mulesoft.service.http.impl.service.client.ws.GrizzlyWebSocketHandlerManager
    • Log when mule application closed stream when more data available in connection
  • com.mulesoft.service.http.impl.service.client.ws.OutboundWebSocketListener
    • Log when mule application closed stream when more data available in connection
  • com.mulesoft.service.http.impl.service.ws.GrizzlyWebSocketBroadcaster
    • Log WebSocket broadcast details
  • org.mule.extension.http.api.listener.HttpBasicAuthenticationFilter
    • Log authentication details
  • org.mule.extension.http.api.policy.HttpListenerPolicyPointcutParameters
    • Log exception about headers and masked request path
  • org.mule.extension.http.internal.listener.HttpListener
  • org.mule.extension.http.internal.listener.HttpResponseFactory
  • org.mule.extension.http.internal.request.HttpRequester
  • org.mule.extension.http.internal.request.HttpRequestFactory
  • org.mule.extension.http.internal.request.HttpRequestOperations
  • org.mule.extension.http.internal.StaticResourceLoader
    • Log details of requested resource location
  • org.mule.service.http.impl.config.ContainerTcpServerSocketProperties
    • Log server socket configuration details
  • org.mule.service.http.impl.service.client.GrizzlyHttpClient
  • org.mule.service.http.impl.service.HttpMessageLogger
    • Standard HTTP Wire Logging
  • org.mule.service.http.impl.service.server.grizzly.GrizzlyHttpServer
  • org.mule.service.http.impl.service.server.grizzly.GrizzlyServerManager

 


Examples for each environment:

  • On-Prem
    • Adding this to the API´s src/main/resources/log4j2.xml file:
      <AsyncLogger name="com.mulesoft.service.http.impl.service.client.builder.NameResolvingRequestBuilder" level="DEBUG" />
  • On-Prem Hybrid or CloudHub
    • Adding this to the "Logging" tab in Anypoint Runtime Manager UI:​​​​​​
      com.mulesoft.service.http.impl.service.client.builder.NameResolvingRequestBuilder=DEBUG
  • Runtime Fabric
    • Adding this to the "Properties" tab in Anypoint Runtime Manager UI:
      logging.level.com.mulesoft.service.http.impl.service.client.builder.NameResolvingRequestBuilder=DEBUG

 

Important: The examples are incomplete and only shows 1 of the 18 possible loggers 
Vidensartikelnummer

001116796

 
Indlæser
Salesforce Help | Article