DCE_SVC_LOG(3dce)Macro to output a binary form of a serviceability debug message Synopsis #include <dce/dce.h> DCE_SVC_LOG((
dce_svc_handle_t handle, Parameters Input
handle
table_index
debug_level
messageid
format
. . .
Description The message can be specified in either one of two ways: by messageid, identifying a message defined in the normal way in the application's sams file; or as a string literal parameter (format). The format string is used only if the specified messageid cannot be found. DCE_SVC_LOG generates a record in the serviceability binary format, not a conventional serviceability message as such. The complete message text is not normally written; instead, only the message ID (the messageid specified in the macro parameter), and its format arguments (if any) are written. When the binary log is read (see svcdumplog(1dce)), the text of the message is reconstructed from the application's installed message catalog. However, if the original message was generated from the format argument, then the entire message text is written to the binary record. The debug_level argument indicates the level of detail associated with the message and must be in the range svc_c_debug1 to svc_c_debug9. Thus the value of debug_level associates the message with one of nine "levels'', and whether or not the message is actually generated at run time will depend on what debugging level has been set for the application. The level can be set by the application itself (by a call to dce_svc_debug_set_levels( ) or dce_svc_debug_routing( )) or by the value of an environment variable or a serviceability routing file; see svcroute(5dce) for further information. The significance of the various levels is application-defined, but in general the higher levels (numbers) imply more detail in debugging output.
Related Information
|