Capturing smart service logs from smart services in Appian

Smart Services provided by our PDFNet library can be extremely useful in process models and expressions, however, they can seem like a black box. Outside of error feedback when something goes wrong, we cannot see into the activities of the smart service. If we want to get more details on the exact details on what is being called or used, then we will need to use custom logging.

We need to add the following to add custom logging, which we can then read the tomcat logs to read the output:

Properties File

1########### Custom Appenders
2log4j.logger.com.apryse.pdfnet.ss=DEBUG, APRYSE_PLUGIN
3
4###### Custom Logging file appender
5log4j.appender.APRYSE_PLUGIN=org.apache.log4j.RollingFileAppender
6log4j.appender.APRYSE_PLUGIN.layout=org.apache.log4j.PatternLayout
7log4j.appender.APRYSE_PLUGIN.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
8log4j.appender.APRYSE_PLUGIN.File=${AE_LOGS}/pdfnet_ss.log
9log4j.appender.APRYSE_PLUGIN.MaxFileSize=10MB
10log4j.appender.APRYSE_PLUGIN.MaxBackupIndex=1000
11log4j.appender.APRYSE_PLUGIN.encoding=UTF-8

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales