Extended logging
Sometimes devices do not work with the platform as expected. Problems can be of different nature, and in most cases are related to a particular device, or a specific model, or non-standard firmware.
In such cases, advanced logs can be exceptionally useful. There you can track all the details of the device's operation on the platform.
To enable extended logs, do the following:
Edit the
config.propertiesfile of tcp-server:
Linux:
/home/java/tcp-server/conf/config.propertiesWindows:
C:\java\tcp-server\conf\config.properties
Add the following line to the bottom of the config (replace
<IMEI>with the actual device IMEI):
debug.traceDevices=<IMEI>For multiple IMEIs:
debug.traceDevices=<IMEI1>,<IMEI2>example:
debug.traceDevices=33225566,44772211Restart tcp-server service. This will apply the config and create a
/debugsubdirectory in.../tcp-server/log/.Wait for the issues or trigger them
Check the
/log/debugdirectory. It will contain a file(s) namedtrace-<IMEI>.log.Stop the extended logging when you no longer require it, otherwise new logs will keep consuming disk space. To do this, comment out (with
#symbol) or delete the previously added line, and then restart tcp-server.
Last updated
Was this helpful?