Enable Wire Logs in WSO2 Micro Integrator with Micro Integrator dashboard
If you are already familiar with WSO2 ESB or WSO2 enterprise integrator, wire logs can be enabled with adding below property to log4j.properties file
log4j.logger.org.apache.synapse.transport.http.wire=DEBUG
Similar thing can be done in the WSO2 Micro Integrator too by making
logger.synapse-transport-http-wire.level=DEBUG
As per the below screen. Once changes are done you need to restart the server to make it applicable for running instances. Also more detail information about wire logs can be found here [1]
However, WSO2 Micro Integrator Dashboard provides capability to enable wire logs during runtime without restarting the Micro Integrator runtime instance. This feature provides a huge advantage when it comes to debugging integration issues in the production environment. In order to install the Micro Integrator Dashboard refer to the steps in [2].
In order to enable debug logs from the Micro Integrator Dashboard, follow below steps.
Login to Micro Integrator Dashboard and scroll down to Log Configs, there you search for ‘synapse-transport-http-wire’” and change the log level to OFF to DEBUG.
Now you can test your integration and check the terminal. You should be able to see wire logs appearing in the terminal as per the below screen.
Further you can monitor http headers on integrations by enabling “synapse-transport-http-headers”
Test your integration and check the terminal window. You should be able to see the header log as below.