Change AS4 Microservice log file location

The location for AS4 Microservice member and command log files can be modified for your convenience. There are commands for modifying the AS4 Microservice default log file locations.

Change member log file location

Use the member set_logging command to change the log settings for each member, including log file location, file size, and the maximum number of each type of log file that is kept in a log directory.

Do not set all of the members on a server to log to one folder. Each member type must log to a unique directory. You can have all of the member directories under one common root folder, for convenience. For example, to set the log file directory to a common root folder for all member types:
Do this... Do not do this...

member set_logging informational logDirectory=C:/MEG_Logs/Informational

member set_logging operational logDirectory=C:/MEG_Logs/Operational

member set_logging catalog logDirectory=C:/MEG_Logs/Catalog

member set_logging container logDirectory=C:/MEG_Logs/Container

member set_logging informational logDirectory=C:/MEG_Logs

member set_logging operational logDirectory=C:/MEG_Logs

member set_logging catalog logDirectory=C:/MEG_Logs

member set_logging container logDirectory=C:/MEG_Logs

Important: You cannot combine log files across servers, for example, you cannot combine all of the Operational.log files into one Operational.log file that contains all of the operational component messages from all of the servers in your installation.

Change console log file location

The default command log file location is set in the logging.properties file that is in the AS4 Microservice <install_dir>/Members/bin/cmd_lib directory.

For more information about these settings, including the logging levels, refer to the Oracle documentation for java.util.logging (http://docs.oracle.com/javase/7/docs/technotes/guides/logging/index.html).

Attention: The log settings that are controlled by the member set_logging command are different from the log settings in the logging.properties file.

Change WebSphere MQ log file location

The directories that contain the log files for WebSphere MQ are specified in the jms.config file. See The WebSphere® MQ classes for JMS configuration file