I am writing a custom connector for K2 which will be resgistered as regular Service Type and then Service Instances + SmartObjects created out of it.
My question is : How do I incorporate logging in this connector which can be enabled or disabled through configuration file?
When you create a custom service broker, you will generated a .dll file representing the service broker. If you have a config file as well, you can copy it over to the same ServiceBroker folder where you place your custom broker dll file.
Custom logging shouldn't be a problem though. You need to specify where to write the logs to in your service broker dll, then make sure that location exists before writing the logs to that location.