Options for Logging
The Microsoft® SNA Server header file TRACE.H provides macros that can be used to write to the Windows NT Application event log files.
These macros use the SNA Server message file NTEVTS.MC that is linked into SNAEVENT.DLL, the central logging DLL that contains every log message in the SNA Server system. The IHV has two options when logging an error message:
-
If the standard SNA Server product contains a log message that describes the error condition, this can be used by the IHV.
-
If extra messages are required, the generic log messages COM0393 and COM0394 can be used. Each takes two parameters, both of which are text strings: the first is an identifier for the SNALink that logged the message, and the second can contain any data or parameters to be logged. The difference between these messages is the level at which they are logged; COM0393 is a level 10 information message, while COM0394 is a warning message that should be used to report error conditions. See SNA Server DMOD Logging Macros for more information on message severity levels.