Configuring Logs

Depending on your logging requirements you can configure detailed logs supported by IBM Connect:Direct Web Services using the common log properties file, log4j.properties.

The log4j.properties file can be found in, $Install_Dir/mftws/BOOT-INF/classes/.

Example log4j.properties files

# Configurable Properties 
# Common log properties to change as per user requirements  
log4j.Rest.loglevel=DEBUG
log4j.Framework.loglevel=DEBUG
log4j.logFilePath=../RestLogs
log4j.logpattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %L - %m%n

Log level settings control the quantity of messages sent to product trace logs. Web Services supports the following log levels: ERROR, INFO, DEBUG, ALL, and OFF.

Note: Logs level must be set to ‘DEBUG’ to start recording logs.

After completing configuring the logs restart the Connect:Direct Web Services for changes to come into effect.