I have a custom JarConnector Class with some debugging message execution using System.out.println() method such as:
System.out.println("Start my custom method methodCall in Custom class CustomClass");
It was shown correctly in version 5.5 SP3. But it is NOT in Log Viewer after we upgrade to version 2023.
Why does it skip my message that is very useful for debugging and logging purpose? What should I do in order show my custom message in Log Viewer?
Solved! Go to Solution.
You can use java.util.Logger instead.
You can follow the logging guidelines of Saviynt Connector Framework. The Custom Jar connector is in the process of revamp and should include the best practices in the future.
The Github project for Connector Framework is available at - https://github.com/saviynt/databaseconnector/blob/master/src/main/java/com/saviynt/ssm/connectorms/s...
//Include following packages
//Initialize the logger in your constructor
private final Logger logger = LoggerFactory.getLogger(this.getClass());
// Log messages
Avoid excessive logging and only log the messages that are absolutely required.
Thank you very much! it works with Java Util Logging.
By the way, Besides JarConnector, if I want to implement custom connector follow the connector framework, following class is still valid? should I extends this class for all custom connectors? Do I need upload to Settings > File Directory > Connector Files in order to make it work?