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:"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 --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.