File cmdLog.c

 ** ** Module Header ******************************************************* **
 ** 									     **
 **   Modules Revision 3.0						     **
 **   Providing a flexible user environment				     **
 ** 									     **
 **   File:		cmdLog.c					     **
 **   First Edition:	95/12/26					     **
 ** 									     **
 **   Authors:	Jens Hamisch, jens@Strawberry.COM			     **
 ** 									     **
 **   Description:	The Tcl module-trace routine which provides a con-   **
 **			trolling interface to the modulecmd tracing feature  **
 ** 									     **
 **   Exports:		cmdModuleLog					     **
 ** 									     **
 **   Notes:								     **
 ** 									     **
 ** ************************************************************************ **
References Variables: IdcmdLog.c

Included Files


Preprocessor definitions

#define PART_LEN 256

Local Variables

Id
static char Id[]
Used in:  cmdLog.c

UseId
static void* UseId[]

module_name
static char module_name[]
Used in: cmdModuleLog()

_stderr
static char _stderr[]
Used in: cmdModuleLog()

_stdout
static char _stdout[]
Used in: cmdModuleLog()

_null
static char _null[]
Used in: cmdModuleLog()

_none
static char _none[]
Used in: cmdModuleLog()


Global Function cmdModuleLog()

 ** ** Function-Header ***************************************************** **
 ** 									     **
 **   Function:		cmdModuleLog					     **
 ** 									     **
 **   Description:	Callback function for 'log'			     **
 ** 									     **
 **   First Edition:	91/10/23					     **
 ** 									     **
 **   Parameters:	ClientData	 client_data			     **
 **			Tcl_Interp	*interp		According Tcl interp.**
 **			int		 argc		Number of arguments  **
 **			char		*argv[]		Argument array	     **
 ** 									     **
 **   Result:		int	TCL_OK		Successfull completion	     **
 **				TCL_ERROR	Any error		     **
 ** 									     **
 **   Attached Globals:	tracelist	List containing all tracing settings **
 **   			g_flags		These are set up accordingly before  **
 **					this function is called in order to  **
 **					control everything		     **
 ** 									     **
 ** ************************************************************************ **
int cmdModuleLog ( ClientData client_data, Tcl_Interp* interp, int argc, char* argv[] )
Prototyped in: modules_def.h
Calls: CheckFacility()error.c
  GetFacilityPtr()error.c
  Module_Error()error.c
  fprintf(), malloc(), realloc(), strcmp(), strcpy(), strlen(), strtok()
Used in: InitializeModuleCommands()init.c
References Variables: _nonecmdLog.c
  _nullcmdLog.c
  _stderrcmdLog.c
  _stdoutcmdLog.c
  g_flagsmain.c
  module_namecmdLog.c