This chapter contains debugging and troubleshooting instructions on the SDK Collectors.
How to debug using logger statements using print or debug log statements in code for example:
self._logger.info("this is a info log statement ") self._logger.debug("this is a bebug log statement ") print("this is a print statement")
Test the code using the following command:
python3 app.py --directory my_custom_collector --configfile config.json --configschema config_input_schema.json --test
The logs are available at logs/logs.txt file in the current directory.