Question
How to enable detailed logging of incoming requests and outgoing responses in PTV xServer 2 for debugging or monitoring purposes.
Answer
Instructions:
To log both the requests sent to the server and the responses returned:
➤ For xServer 2:
-
Open the configuration file located at:
<xserver-installation>/conf/xserver.conf -
Add or modify the following parameters:
logRequest = true logResponse = true Restart the relevant xServer service to apply the changes.
➤ For legacy xServer 1:
If you're using an older xServer 1 setup, these parameters should be added or changed in:
<installation>/conf/xserver.properties
After enabling these settings, the server will log each request and response in the main log file of the corresponding xServer module (e.g., routing, geocoding, etc.).