Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

lcmaps_log.h File Reference

Logging API for the LCMAPS plugins and LCMAPS itself. More...

#include <syslog.h>

Go to the source code of this file.

Functions

int lcmaps_log (int prty, char *fmt,...)
 log information. More...

int lcmaps_log_debug (int debug_lvl, char *fmt,...)
 Print debugging information. More...

int lcmaps_log_time (int prty, char *fmt,...)
 log information with timestamp. More...


Detailed Description

Logging API for the LCMAPS plugins and LCMAPS itself.

Author:
Martijn Steenbakkers for the EU DataGrid.
This header contains the declarations of the LCMAPS logging functions The LCMAPS plugins can use this API to write output to the LCMAPS logging devices.
  1. lcmaps_log(): Log to LCMAPS logging devices.
  2. lcmaps_log_debug(): Produce debugging output.

Definition in file lcmaps_log.h.


Function Documentation

lcmaps_log int    prty,
char *    fmt,
...   
 

log information.

This function logs information for LCMAPS and its plugins. Syslog() is called with the specified priority. No syslog() is done if the priority is 0.

Parameters:
prty  syslog priority (if 0 don't syslog).
fmt  string format
...  variable argument list
Return values:
0  succes.
1  failure.

Definition at line 217 of file lcmaps_log.c.

lcmaps_log_debug int    debug_lvl,
char *    fmt,
...   
 

Print debugging information.

This function prints debugging information (using lcmaps_log with priority 0) provided debug_lvl <= DEBUG_LEVEL (default is 0).

Parameters:
debug_lvl  debugging level
fmt  string format
...  variable argument list
Return values:
0  succes.
1  failure.

Definition at line 284 of file lcmaps_log.c.

lcmaps_log_time int    prty,
char *    fmt,
...   
 

log information with timestamp.

This function logs information with a timestamp for LCMAPS and its plugins. Syslog() is called with the specified priority. No syslog() is done if the priority is 0.

Parameters:
prty  syslog priority (if 0 don't syslog).
fmt  string format
...  variable argument list
Return values:
0  succes.
1  failure.

Definition at line 371 of file lcmaps_log.c.


Generated on Sat Oct 2 02:18:27 2004 for edg-lcmaps by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002