src/clustal/log.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
#include "log.h"
Include dependency graph for log.c:

Functions

void LogVfprintf (FILE *prFP, char *pcFmt, va_list rVArgList)
 Plain, default print function.
void LogWarn (FILE *prFP, char *pcFmt, va_list rVArgList)
void LogError (FILE *prFP, char *pcFmt, va_list rVArgList)
void LogCritical (FILE *prFP, char *pcFmt, va_list rVArgList)
void LogFatal (FILE *prFP, char *pcFmt, va_list rVArgList)
 Will also exit!
void LogForcedDebug (FILE *prFP, char *pcFmt, va_list rVArgList)
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 *prLog, int iLevel, FILE *prFP)
 Change file pointer for certain level.
FILE * LogGetFP (log_t *prLog, int iLevel)
 Return file pointer for certain level.
void LogSetFPForAll (log_t *prLog, FILE *prFP)
 Change file pointer for all levels.
void LogMute (log_t *prLog, int iLevel)
 Mute certain level (i.e set the corresponding function to NULL).
void LogMuteAll (log_t *prLog)
 Mute all channels.
void LogFuncOverwrite (log_t *prLog, int iLevel, void(*Func)(FILE *prFP, char *pcFormat, va_list rVArgList))

Variables

log_t rLog

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 LogCritical ( FILE *  prFP,
char *  pcFmt,
va_list  rVArgList 
)
void LogDefaultSetup ( log_t log  ) 

Sets up default function pointers.

void LogError ( FILE *  prFP,
char *  pcFmt,
va_list  rVArgList 
)
void LogFatal ( FILE *  prFP,
char *  pcFmt,
va_list  rVArgList 
)

Will also exit!

void LogForcedDebug ( FILE *  prFP,
char *  pcFmt,
va_list  rVArgList 
)
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 prLog,
int  iLevel 
)

Mute certain level (i.e set the corresponding function to NULL).

void LogMuteAll ( log_t prLog  ) 

Mute all channels.

void LogSetFP ( log_t prLog,
int  iLevel,
FILE *  prFP 
)

Change file pointer for certain level.

void LogSetFPForAll ( log_t prLog,
FILE *  prFP 
)

Change file pointer for all levels.

void LogVfprintf ( FILE *  prFP,
char *  pcFmt,
va_list  rVArgList 
)

Plain, default print function.

Newline character is automatically appended to message.

void LogWarn ( FILE *  prFP,
char *  pcFmt,
va_list  rVArgList 
)

Variable Documentation

Generated on Fri Aug 31 05:32:52 2012 for Clustal Omega by  doxygen 1.6.3