Device logging

In the mcs-config.xml file, you use the logging element to configure a service to log information from devices that are not recorded in the device repository, and to generate email reports to your device service provider.

In the mcs-config.xml file, you use the logging element to configure a service to log information from devices that are not recorded in the device repository, and to generate email reports to your device service provider.

The information includes

The log-file element specifies the full path to the log file, and the e-mail-sending element enables and disables the reporting service. If reporting is disabled, logging will continue.

If email is enabled you use the config element container to define the parameters for the SMTP mail server, the email address, subject and frequency information for the reports.

A report is considered to be successfully sent if the email process does not throw exceptions, and the log file is deleted. The process doesn't check if the recipient received and processed the report. If reporting fails, the log entries are not deleted, and the service will retry after a period.

Duplicated entries are filtered out during logging, and the data structure of the filter process is rebuilt from the log file after restarting MCS or DRWS. However due to memory constraints duplicated entries are still possible. Duplicates are also possible between different reports.

Details of the configuration elements can be found in MCS configuration elements.

Related topics