Main Page | Alphabetical List | Data Structures | File List | Globals | Related Pages

log.h File Reference

include file of log.c More...

#include "sections.h"

Go to the source code of this file.

Defines

#define LASTVALIDEVTNAME   35 /* last event name number in EvtNames */
#define debug_open()   log_open ()
#define debug_close()   log_close ()
#define debug(mask, args)   {if ((DebugLevel)&(mask)) log_printf args;}
#define debug_in(mask, args)   {if ((DebugLevel)&(mask)) log_printf args;DebugIndentLevel+=2;}
#define debug_enter_func(mask,)   {if ((DebugLevel)&(mask)) log_printf ("-> "__FUNCTION__ __VA_ARGS__);DebugIndentLevel+=2;}
#define debug_out(mask, args)   {DebugIndentLevel-=2;if ((DebugLevel)&(mask)) log_printf args;}
#define debug_exit_func(mask,)   {DebugIndentLevel-=2;if ((DebugLevel)&(mask)) log_printf ("<- "__FUNCTION__ __VA_ARGS__);}

Functions

Err log_open (void) LOG_SECTION
 Opens a new log record in memo pad data base.

void log_close (void) LOG_SECTION
 Closes the current log.

void log_write (char *p) LOG_SECTION
 Writes the string given in the log, preceded by a time stamp and a newline.

void log_delete (void) LOG_SECTION
 Closes and deletes the curent log.

void log_printf (Char *formatStr,...) LOG_SECTION
 Internal use.


Variables

int DebugLevel
int DebugIndentLevel
char * EvtNames []


Detailed Description

include file of log.c

Author:
C. Claveleira
Date:
1999-2004 debugging macros

Function Documentation

void log_close void   ) 
 

Closes the current log.

Returns:
nothing

void log_delete void   ) 
 

Closes and deletes the curent log.

Returns:
nothing

Err log_open void   ) 
 

Opens a new log record in memo pad data base.

Returns:
nothing

void log_printf Char *  formatStr,
... 
 

Internal use.

Writes "printf" formatted messages to debug log

Parameters:
formatStr Pointer to the format specification string
... parameters
Returns:
nothing

void log_write char *  p  ) 
 

Writes the string given in the log, preceded by a time stamp and a newline.

Parameters:
p string to log
Returns:
nothing


Generated on Sun Mar 13 09:36:01 2005 for GPilotS by doxygen 1.3.6