Main Page   File List   File Members   Related Pages  

frdi_log.c File Reference

write stuff to a file More...

#include "frdi.h"

Functions

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


Detailed Description

write stuff to a file

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 frdiLogFinalise frdi_log *    log
 

Call before closing the application

void frdiLogRaw frdi_log *    log,
char *    str
 

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

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