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>

Include dependency graph for lcmaps_log.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

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

int 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 210 of file lcmaps_log.c.

int 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 277 of file lcmaps_log.c.

int 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 363 of file lcmaps_log.c.


Generated at Thu Mar 4 17:39:24 2004 for edg-lcmaps by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001