Write Log

The Write Log command writes messages to the transaction log (Translog) files. (See the Trading Partner and Log Database Formats chapter of the ECMap Reference Guide for the format of the Translog table.) These messages are user-initiated log file entries, as opposed to the system-generated messages. User-initiated messages include the same information that would be written to a system-generated message written at the same point. There are three required fields for user-initiated messages and seven optional ones. Entries in the optional fields override system-generated information in these fields.

The Write Log rule is used in both error reporting and transaction reporting requirements. It may also be used during debugging to identify particular values, check progress, etc.

Select the up arrow next to the Write To Log text box, and the Write Log File window displays.

If the current map is an inbound or outbound transaction map, the window below appears.

On the Write Log File window, you must enter information in the first three required fields – Msg No, Sev Code, and Message.

Variables

If the current map is an any-to-any map, the Write Log File window below displays.

The Write Log window for any-to-any maps has the same top and bottom sections as the Write Log window for inbound and outbound transaction maps. However, it does not have the middle section because this section contains only standards-related data.