Control LALSuite debugging information verbosity and memory debugging features.
The environment variable LAL_DEBUG_LEVEL controls the default verbosity of LALSuite debugging information printed through the functions defined in Header LALError.h and Header XLALError.h . It also controls several memory debugging features implemented for memory allocated using the functions defined in Header LALMalloc.h .
LAL_DEBUG_LEVEL is parsed as a comma-separated series of levels. (Empty levels are ignored.) Each level is a case-insensitive string, and may be one of the following:
NDEBUG: No debugging information is printed and memory debugging features are disabled. This cancels out the effect of any previously-specified levels.levels:ERROR: Error messages are printed (default).WARNING: Warning messages are printed.INFO: Information messages are printed.TRACE: Function call tracing messages are printed.ERROR.ERROR and WARNING combined.ERROR, WARNING, and INFO combined.levels:MEMDBG: Debugging of memory allocation routines is enabled, but no function call or memory allocation tracing messages are printed.MEMTRACE: Debugging of memory allocation routines is enabled, and in addition function call and memory allocation tracing messages are printed.ALLDBG: All debugging information messages are printed, and all memory debugging features are enabled. Prototypes | |
| int | XLALGetDebugLevel (void) |
| void | XLALClobberDebugLevel (int level) |
Enumerations | |
| enum | { LALERRORBIT = 0001 , LALWARNINGBIT = 0002 , LALINFOBIT = 0004 , LALTRACEBIT = 0010 , LALMEMDBGBIT = 0020 , LALMEMPADBIT = 0040 , LALMEMTRKBIT = 0100 , LALMEMINFOBIT = 0200 } |
| lalDebugLevel bit field values More... | |
| enum | { LALNDEBUG = 0 , LALERROR = LALERRORBIT , LALWARNING = LALWARNINGBIT , LALINFO = LALINFOBIT , LALTRACE = LALTRACEBIT , LALMSGLVL1 = LALERRORBIT , LALMSGLVL2 = LALERRORBIT | LALWARNINGBIT , LALMSGLVL3 = LALERRORBIT | LALWARNINGBIT | LALINFOBIT , LALMEMDBG = LALMEMDBGBIT | LALMEMPADBIT | LALMEMTRKBIT , LALMEMTRACE = LALTRACEBIT | LALMEMDBG | LALMEMINFOBIT , LALALLDBG = ~LALNDEBUG } |
| composite lalDebugLevel values More... | |
Macros | |
| #define | lalDebugLevel (XLALGetDebugLevel()) |
| int XLALGetDebugLevel | ( | void | ) |
Definition at line 117 of file LALDebugLevel.c.
| void XLALClobberDebugLevel | ( | int | level | ) |
Definition at line 54 of file LALDebugLevel.c.
| anonymous enum |
lalDebugLevel bit field values
Definition at line 32 of file LALDebugLevel.h.
| anonymous enum |
composite lalDebugLevel values
Definition at line 44 of file LALDebugLevel.h.
| #define lalDebugLevel (XLALGetDebugLevel()) |
Definition at line 58 of file LALDebugLevel.h.