I am trying to create a custom connector and I want to log the task details (Connector and Task ID) within the task runtime. In the Task start and poll methods I want to log the task number and connector name. Is there any way I can get the program runtime context which provides the task details (Connector and Task ID).
Please note that the connector may have multiple tasks running parallel (tasks.max configuration) so I want to associate specific messages with the specific task which created it.