How can I enable debug logging on stream-reactor connectors?

I would like to enable debug-level logging for Stream Reactor connectors in order to capture detailed execution details, including request processing, transformations, and interactions with external systems such as Kafka and target data stores, to troubleshoot issues and gain deeper insights into connector behavior.

Our connectors contain extra verbose logging that can be switched on via the REST API. The different log levels we generally use are DEBUG, INFO and ERROR, with occasional detailed information attached to the TRACE logger.

For Kafka Connect 2.5 and later it is possible to change log levels dynamically by sending a REST request to Kafka’s admin/logger API. Changes are effective immediately without a restart:

curl -X PUT "http://localhost:8083/admin/loggers/io.lenses.streamreactor" -H "Content-Type: application/json" -d '{ "level": "DEBUG" }'