Logging

The Web Interface V6.0 Server Program and Folder Monitoring Service can log information to files and the console. Because Apache's log4j library is used, the output destination and the output level of the log can easily be changed. If a custom log configuration file is not specified the default logging behavior is to print DEBUG level messages to both [install directory]/logs/[xds | folder-monitor].log and the console.

The log4j configuration uses a Java property file.

The following is an example of the configuration file in Java property format. Lines contain keys and values separated by equal signs. Refer to log4j for detailed information.

# root logger
log4j.rootLogger=INFO, console, logfile

# console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c{1} - %m%n

# log file
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.file=./xds.log
log4j.appender.logfile.MaxFileSize=3MB
log4j.appender.logfile.MaxBackupIndex=8
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d [%t] %-5p %c{1} (%F:%L) - %m%n


Copyright © 2005-2018 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.