This article outlines the process to create a custom log file in Appian. The custom file can have logs from specific Java classes which may or may not be included in the application server logs. This will help if troubleshooting a specific issue or logs containing sensitive data are required.
To enable logging for the custom log:
<APPIAN_HOME>/deployment/web.war/WEB-INF/resources
<APPIAN_HOME>/ear/suite.ear/resources
########### Custom Appenders log4j.logger.<JAVA_CLASS_NAME>=DEBUG, CUSTOM_LOGGING log4j.additivity.<JAVA_CLASS_NAME>=false ###### Custom Logging file appender log4j.appender.CUSTOM_LOGGING=org.apache.log4j.RollingFileAppender log4j.appender.CUSTOM_LOGGING.layout=org.apache.log4j.PatternLayout log4j.appender.CUSTOM_LOGGING.layout.ConversionPattern=%d [%t] %-5p %c - %m%n log4j.appender.CUSTOM_LOGGING.File=${AE_LOGS}/.log log4j.appender.CUSTOM_LOGGING.MaxFileSize=10MB log4j.appender.CUSTOM_LOGGING.MaxBackupIndex=1000 log4j.appender.CUSTOM_LOGGING.encoding=UTF-8
log4j.additivity.<JAVA_CLASS_NAME>
To disable logging for the custom log:
log4j.logger.<JAVA_CLASS_NAME>
OFF, CUSTOM_LOGGING
This article applies to all versions of Appian.
Last Reviewed: June 2021