Main Page   File List   File Members   Related Pages  

frdi_log.h File Reference

function headers for frdi_log.c More...

Go to the source code of this file.

Functions

char * frdiThreadId (pthread_t thread)
char * frdiThreadIdSelf ()
frdi_log * frdiLogInitialise (frdi_config *config)
void frdiLogRaw (frdi_log *log, char *str)
void frdiLogFinalise (frdi_log *log)
void frdiLogNeat (frdi_log *log, char *str)


Detailed Description

function headers for frdi_log.c

Author:
Douglas Reay <douglas-legal@reay.org>
Warning:

Function Documentation

char* frdiThreadId pthread_t    thread
 

return an id for a given thread

char* frdiThreadIdSelf  
 

return an identifier for the current thread

frdi_log* frdiLogInitialise frdi_config *    config
 

Set what file the log writes out to

void frdiLogRaw frdi_log *    log,
char *    str
 

Writes str to the correct log file, raw (no timestamp, no linebreaks, no additions)

void frdiLogFinalise frdi_log *    log
 

Call before closing the application

void frdiLogNeat frdi_log *    log,
char *    str
 

write str, prefixed with a timestamp, wrapped and carridge returned

Todo:
wrapping


Generated on Wed Aug 18 13:24:01 2004 for Project Fairdice by doxygen1.2.18