Outputting Logs for Plugins Development and Debugging
This Documentation is Being Deprecated
This page is being phased out as part of our documentation reorganization.
Click this card to be redirected to the updated version with the most current information.
If you notice any discrepancies or areas needing improvement in the new documentation, please use the “Report an issue” button at the bottom of the page.
As a plugin developer, you may want to print arbitrary strings to logs during plugin processing for development or debugging purposes.
For this purpose, the plugin SDK implements a handler for Python’s standard logging
library. By using this, you can output any string to both the standard output during remote debugging and the plugin daemon container logs (community edition only).
Sample
Import plugin_logger_handler
and add it to your logger as a handler. Below is a sample code for a tool plugin.