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

lcas_log.h

Go to the documentation of this file.
00001 /*                                                                                                            
00002  * Copyright (c) 2001 EU DataGrid.                                                                             
00003  * For license conditions see http://www.eu-datagrid.org/license.html                                          
00004  *
00005  * Copyright (c) 2001, 2002 by 
00006  *     Martijn Steenbakkers <martijn@nikhef.nl>,
00007  *     David Groep <davidg@nikhef.nl>,
00008  *     NIKHEF Amsterdam, the Netherlands
00009  */
00010 
00024 #ifndef LCAS_LOG_H
00025 #define LCAS_LOG_H
00026 
00027 /******************************************************************************
00028                              Include header files
00029 ******************************************************************************/
00030 #include <syslog.h>
00031 
00032 /******************************************************************************
00033  *                            Module definition
00034  *****************************************************************************/
00035 /******************************************************************************
00036 Function:       lcas_log()
00037 Description:    Log information to file and or syslog
00038 Parameters:
00039                 prty:    syslog priority (if 0 don't syslog)
00040                 fmt:     string format
00041 Returns:        0 succes
00042                 1 failure
00043 ******************************************************************************/
00063 extern int lcas_log(
00064         int prty,
00065         char * fmt,
00066         ...
00067 );
00068 
00069 /******************************************************************************
00070 Function:       lcas_log_debug()
00071 Description:    Print debugging information
00072 Parameters:
00073                 debug_lvl: debugging level
00074                 fmt:       string format
00075 Returns:        0 succes
00076                 1 failure
00077 ******************************************************************************/
00096 extern int lcas_log_debug(
00097         int debug_lvl,
00098         char * fmt,
00099         ...
00100 );
00101 
00102 /******************************************************************************
00103 Function:       lcas_log_time()
00104 Description:    Log information to file and or syslog with a timestamp
00105 Parameters:
00106                 prty:    syslog priority (if 0 don't syslog)
00107                 fmt:     string format
00108 Returns:        0 succes
00109                 1 failure
00110 ******************************************************************************/
00111 extern int lcas_log_time(
00112         int prty, 
00113         char * fmt, 
00114         ...
00115 );
00116 
00117 /******************************************************************************
00118 Function:       lcas_get_debug_level()
00119 Description:    Retrieve the debug_level
00120 Parameters:
00121 Returns:        the debug_level
00122 ******************************************************************************/
00123 extern int lcas_get_debug_level(
00124 );
00125 
00126 #endif /* LCAS_LOG_H */
00127 
00128 /******************************************************************************
00129 CVS Information:
00130     $Source: /cvs/fabric_mgt/gridification/lcas/include/lcas_log.h,v $
00131     $Date: 2003/08/22 16:12:29 $
00132     $Revision: 2.7 $
00133     $Author: martijn $
00134 ******************************************************************************/

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