Logging functions


Defines

#define LOG_LEVEL_ERROR   0
 Defines error-only log level.
#define LOG_LEVEL_INFO   1
 Defines error and info only log level.
#define LOG_LEVEL_DEBUG   2
 Defines debug log level.

Functions

void log_error (char *format,...)
 logs error, arguments are the same as for printf() prints to standard error
void log_info (char *format,...)
 logs message, arguments are the same as for printf() prints to standard output
void log_debug (char *format,...)
 logs message, arguments are the same as for printf() prints to standard output
void log_set_level (int level)
 Sets logging level.


Define Documentation

#define LOG_LEVEL_ERROR   0

Defines error-only log level.

#define LOG_LEVEL_INFO   1

Defines error and info only log level.

#define LOG_LEVEL_DEBUG   2

Defines debug log level.


Function Documentation

void log_error ( char *  format,
  ... 
)

logs error, arguments are the same as for printf() prints to standard error

void log_info ( char *  format,
  ... 
)

logs message, arguments are the same as for printf() prints to standard output

void log_debug ( char *  format,
  ... 
)

logs message, arguments are the same as for printf() prints to standard output

void log_set_level ( int  level  ) 

Sets logging level.

Parameters:
level - controls which messages to log
  • LOG_LEVEL_ERROR - log error only
  • LOG_LEVEL_INFO - log errors and info
  • LOG_LEVEL_INFO - logs everything


Genereated on Tue Mar 11 19:26:09 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.