For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

########### Custom Appenders
log4j.logger.com.apryse.pdfnet.ss=DEBUG, APRYSE_PLUGIN

###### Custom Logging file appender
log4j.appender.APRYSE_PLUGIN=org.apache.log4j.RollingFileAppender
log4j.appender.APRYSE_PLUGIN.layout=org.apache.log4j.PatternLayout
log4j.appender.APRYSE_PLUGIN.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
log4j.appender.APRYSE_PLUGIN.File=${AE_LOGS}/pdfnet_ss.log
log4j.appender.APRYSE_PLUGIN.MaxFileSize=10MB
log4j.appender.APRYSE_PLUGIN.MaxBackupIndex=1000
log4j.appender.APRYSE_PLUGIN.encoding=UTF-8

Last updated

Was this helpful?