20
K
DAK
KwikNet Overview
Message Print Attributes
The parameter defining the message print attributes includes three fields of interest to the
user: severity level, class and source type. These fields can be isolated using the
following symbolic masks defined in
KwikNet header file KN_COMN.H. All other bits in the
parameter are reserved for the private use of
KwikNet.
KN_PA_LEVEL Severity level
KN_PA_CLASS Message class
KN_PA_TYPE Source type
The severity levels are defined as follows:
KN_PA_INFO General information and application messages
KN_PA_WARN KwikNet warnings
KN_PA_FATAL KwikNet fatal error messages
The message classes, defined as follows, can be used to identify the device to which the
messages should be directed.
KN_PA_APP General information and application messages
KN_PA_DEBUG KwikNet debug logging
KN_PA_STATS KwikNet network statistics
The message source types define the module, network, device, protocol layer or service
which was executing when the message was generated. The list is extensive and subject
to change. The source types, defined in KwikNet header file KN_COMN.H, will generally be
of little interest to your application. The source types could be used to provide a sub-
classification if you wish to archive messages in some manner.
The message print attributes are defined such that an attribute of 0 will always describe
an application message of lowest severity and with no known source type. Hence,
applications can easily call kn_dprintf() with an attribute of 0 to log messages.
Comments to this Manuals