2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.


Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

common/logf.c File Reference

Detailed Description

Logging utility [Sec. 1.4.2 (not in book)].

Definition in file logf.c.

Go to the source code of this file.


void init (void)
void logfmt (const char *format,...)
void logfmt_setpath (const char *path)
void logfmt_args (int argc, char *argv[])
void logfmt_enable (bool enable)


FILE * logfile = NULL
const char * logpath = "/tmp/auplog.tmp"
bool enable_logging = false

Function Documentation

void init void   )  [static]

Definition at line 28 of file logf.c.

References exit(), fcntl(), logfile, logfmt(), and logpath.

Referenced by logfmt(), and logfmt_setpath().

void logfmt const char *  format,

Definition at line 42 of file logf.c.

References enable_logging, getpid(), init(), localtime(), logfile, strftime(), and time().

Referenced by ec_print(), and init().

void logfmt_args int  argc,
char *  argv[]

Definition at line 66 of file logf.c.

References enable_logging.

void logfmt_enable bool  enable  ) 

Definition at line 77 of file logf.c.

References enable_logging.

void logfmt_setpath const char *  path  ) 

Definition at line 60 of file logf.c.

References init(), and logpath.

Variable Documentation

bool enable_logging = false [static]

Definition at line 26 of file logf.c.

Referenced by logfmt(), logfmt_args(), and logfmt_enable().

FILE* logfile = NULL [static]

Definition at line 24 of file logf.c.

Referenced by init(), and logfmt().

const char* logpath = "/tmp/auplog.tmp" [static]

Definition at line 25 of file logf.c.

Referenced by init(), and logfmt_setpath().

Generated on Fri Apr 23 10:57:11 2004 for AUP2 Example Source by doxygen 1.3.1