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 (self-hosted version only).

Sample

Import plugin_logger_handler and add it to your logger as a handler. Below is a sample code for a tool plugin.

Edit this page | Report an issue