Skip to main content
Kinetic Community

Logging Properties

ARAPI / ARSQL TRACE Logging

ARS API and SQL logging can be enabled in the web application to log directly to files on the web server.  This provides the benefits of making the log files available without having to go to the ARS server, and also only logs information that pertains to the web application rather then all calls to the ARS server.

This feature can be enabled in Kinetic Request by adding the following to a ksrlogging.ini file (which can be pointed to by the AdminConsole) in the Logger Properties File configuration value:

 

log4j.logger.com.kd.arsHelpers=TRACE, rolling
log4j.logger.com.kd.kineticSurvey=TRACE, rolling
log4j.logger.com.kd.ksr=TRACE, rolling
log4j.logger.com.kineticdata=TRACE, rolling
log4j.additivity.com.kd.arsHelpers=false
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=/tmp/kinetic-request/ars-rolling.log
log4j.appender.rolling.MaxFileSize=20MB
log4j.appender.rolling.MaxBackupIndex=5
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d [%t] %-5p %c - %m%n