nucm-logo

NUCM Documentation
Interface: Miscellaneous: nc_debugfile


[Distribution | Miscellaneous | Access]

[nc_ping | nc_shutdown | nc_errorfile | nc_debugfile]

Signature

int  nc_debugfile(const char*  filename,
	          int  level)

Functionality

Redirects the debug messages of a NUCM client to the file that is named by the parameter filename. By default, debug messages of a NUCM client are silent, this function overwrites that default. If the parameter filename is NULL, debug messages are silent again. The parameter level determines the level of debug output, the higher the number, the more detailed messages are produced. This function is only available if the NUCM client was compiled with the ALLOWDEBUG flag.

Return Values

0: everything went ok
-1: an error occurred

NdbErrno Codes

None

Example

To have debug messages saved of up-to level 4 in a file named ERROR:
   #include "nc.h"

   nc_debugfile("./DEBUG", 4);

[Top | Quick Index] [Concepts | Interface]

SERL <serl.cs.colorado.edu>