Description

Programs that wish to write diagnostic output should use mtaLog() and mtaLogv(). These two routines ensure that diagnostic output
is directed to the same output stream as other diagnostic information generated by
the MTA SDK. With one exception, consider a call to mtaLog() as
being identical to calling the C run-time library routine printf().
The call arguments for the two routines are identical, including the formatting argument, fmt. The single exception is that, unlike printf(), a
call to mtaLog() always produces a single line of output to the
channel’s log file. Consequently, do not attempt to write either partial or
multiple lines with a single call to mtaLog().

Do not include a terminating line feed or other record terminator in the output.
That is, do not put a \n at the end of the formatting string.

A time stamp with a resolution of hundredths of a second prefaces each line
of diagnostic output generated with mtaLog(). The time stamp uses
the system clock and is reported in the local time zone.