Logs in custom connector

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

See this article: Sign In to Compass - Compass

Hey @Abhinov,

I hope this helped; please let us know if the above article was able to assist you with your log use case.

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,

image001.png

image002.png

image003.png

image004.png

image005.png

image006.png

image007.png

image008.png

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!

Hi Michael,

I am still working on this. I will update you ASAP :slight_smile: .

Thanks,
Abhinov

Michael,

Logging is working fine. :slight_smile:

Thanks a lot for the support.

-Abhinov