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

lcas_log.h File Reference

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

#include <syslog.h>

Include dependency graph for lcas_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 lcas_log (int prty, char *fmt,...)
 log information. More...

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

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

int lcas_get_debug_level ()
 Retrieve the debug_level. More...


Detailed Description

Logging API for the LCAS plugins and LCAS itself.

Author:
Martijn Steenbakkers for the EU DataGrid.

This header contains the declarations of the LCAS logging functions The LCAS plugins can use this API to write output to the LCAS logging devices.
  1. lcas_log(): Log to LCAS logging devices.
  2. lcas_log_debug(): Produce debugging output.

Definition in file lcas_log.h.


Function Documentation

int lcas_get_debug_level ( )
 

Retrieve the debug_level.

Returns:
the debug_level

Definition at line 338 of file lcas_log.c.

Referenced by lcas_check_gacl().

int lcas_log ( int prty,
char * fmt,
... )
 

log information.

This function does the logging for the LCAS 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 154 of file lcas_log.c.

int lcas_log_debug ( int debug_lvl,
char * fmt,
... )
 

Print debugging information.

This function prints debugging information (using lcas_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 196 of file lcas_log.c.

int lcas_log_time ( int prty,
char * fmt,
... )
 

log information with timestamp.

This function logs information with a timestamp for LCAS 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 264 of file lcas_log.c.


Generated at Tue Sep 23 15:07:02 2003 for edg-lcas by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001