Abhinov
(Abhinov Dhonthula)
August 26, 2021, 2:09pm
1
Hi,
Context:
We are trying to implement custom connector and trying to log messages into ccg.log file
Problem:
We tried different methods like “debug()”, “info()” e.t.c., but none of them are working.
Can someone let us know how to enable and use logs in custom connector implementation.
-Abhinov
Hey @Abhinov ,
I hope this helped; please let us know if the above article was able to assist you with your log use case.
Abhinov
(Abhinov Dhonthula)
September 1, 2021, 3:18am
4
Hi Michael and Menno,
Thank you for the reply.
The log article which provided here is for default connectors. I need to implement logs from custom connector.
Thanks,
Hey Abhinov,
I have the following in my custom connector and I can do log.debug(); to have it appear in my CCG logs. I don’t know if there are other ways to do it but this seems to work for me.
import openconnector.SystemOutLog;
import openconnector.Log;
public CustomConnector(ConnectorConfig config, Log log) {
super(config, log);
}
Where CustomConnector is the name of your Custom Connector
Hey Abhinov,
Was the above able to help you? Let us know the results!
Abhinov
(Abhinov Dhonthula)
September 14, 2021, 3:46am
7
Hi Michael,
I am still working on this. I will update you ASAP .
Thanks,
Abhinov
Abhinov
(Abhinov Dhonthula)
September 14, 2021, 5:30am
8
Michael,
Logging is working fine.
Thanks a lot for the support.
-Abhinov