src/clustal/log.h File Reference
#include <stdio.h>
#include <stdarg.h>
Go to the source code of this file.
Data Structures |
struct | log_t |
Defines |
#define | LOG_DEBUG 0 |
#define | LOG_VERBOSE 1 |
#define | LOG_INFO 2 |
#define | LOG_WARN 3 |
#define | LOG_FORCED_DEBUG 4 |
#define | LOG_ERROR 5 |
#define | LOG_CRITICAL 6 |
#define | LOG_FATAL 7 |
#define | LOG_NUM_LEVELS 8 |
Functions |
void | LogDefaultSetup (log_t *log) |
| Sets up default function pointers.
|
void | Log (log_t *prLog, int iLevel, char *pcFmt,...) |
| Log to certain level.
|
void | LogSetFP (log_t *log, int level, FILE *fp) |
| Change file pointer for certain level.
|
void | LogSetFPForAll (log_t *log, FILE *fp) |
| Change file pointer for all levels.
|
FILE * | LogGetFP (log_t *prLog, int iLevel) |
| Return file pointer for certain level.
|
void | LogMute (log_t *log, int level) |
| Mute certain level (i.e set the corresponding function to NULL).
|
void | LogMuteAll (log_t *log) |
| Mute all channels.
|
void | LogFuncOverwrite (log_t *prLog, int iLevel, void(*Func)(FILE *prFP, char *pcFormat, va_list rVArgList)) |
Variables |
log_t | rLog |
Define Documentation
#define LOG_FORCED_DEBUG 4 |
Function Documentation
void Log |
( |
log_t * |
prLog, |
|
|
int |
iLevel, |
|
|
char * |
pcFmt, |
|
|
|
... | |
|
) |
| | |
Log to certain level.
See also comp.lang.c FAQ list ยท Question 15.12 http://c-faq.com/varargs/handoff.html How can I write a function which takes a variable number of arguments and passes them to some other function (which takes a variable number of arguments)?
void LogDefaultSetup |
( |
log_t * |
log |
) |
|
Sets up default function pointers.
void LogFuncOverwrite |
( |
log_t * |
prLog, |
|
|
int |
iLevel, |
|
|
void(*)(FILE *prFP, char *pcFormat, va_list rVArgList) |
Func | |
|
) |
| | |
FILE* LogGetFP |
( |
log_t * |
prLog, |
|
|
int |
iLevel | |
|
) |
| | |
Return file pointer for certain level.
void LogMute |
( |
log_t * |
log, |
|
|
int |
level | |
|
) |
| | |
Mute certain level (i.e set the corresponding function to NULL).
void LogMuteAll |
( |
log_t * |
log |
) |
|
void LogSetFP |
( |
log_t * |
log, |
|
|
int |
level, |
|
|
FILE * |
fp | |
|
) |
| | |
Change file pointer for certain level.
void LogSetFPForAll |
( |
log_t * |
log, |
|
|
FILE * |
fp | |
|
) |
| | |
Change file pointer for all levels.
Variable Documentation