OSSupportQuestions

SDK Logging

0 votes
Hey team, One of our customer is asking do we have some logging capabilities in our SDK? They are using Java SDK and they want to know what API calls have been eventually sent out. They are already aware of using Fiddler to monitor HTTP traffic, while what they want is the logging capability that they can utilize in their production environment, instead of troubleshooting purpose. Thanks a lot!

Reply to: SDK Logging

0 votes
Hi, Please refer client this documentation: Logging where guides them how to utilize the built-in logging capability from Java SDK, below is the brief steps: (1)add a logging.properties file to their project contenting below content:
# Create console handler
com.silanis.esl.handlers=java.util.logging.ConsoleHandler
 
# The eSignLive.com log level is set to FINE
com.silanis.esl.level=FINEST 
 
# Set the default logging level for the root logger
.=FINEST
 
# The Console Handler log level must be set to FINE or lower
java.util.logging.ConsoleHandler.level=FINEST
 
# --- Console Handler Properties ---
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.SimpleFormatter.format=%1$tb %1$td, %1$tY %1$tl:%1$tM:%1$tS %1$Tp %2$s [%4$s] %5$s%n
In this example, we enabled 'java.util.logging.ConsoleHandler', they can also use the 'java.util.logging.FileHandler' to persist the logs into a .log file. (2)before initializing the EslClient object, add a JVM property:
	static {
		System.setProperty("java.util.logging.config.file", "./sources/logging.properties");
	}
With ConsoleHandler, they will be able to see the logs printed out in the console. Hope this could help! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off