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

lcmaps_log.h

Go to the documentation of this file.
00001 /*                                                                                                            
00002  * Copyright (c) Members of the EGEE Collaboration. 2004.
00003  * See http://eu-egee.org/partners/ for details on the copyright holders.
00004  * For license conditions see the license file or
00005  * http://eu-egee.org/license.html
00006  */
00007 
00008 /*                                                                                                            
00009  * Copyright (c) 2001 EU DataGrid.                                                                             
00010  * For license conditions see http://www.eu-datagrid.org/license.html                                          
00011  *
00012  * Copyright (c) 2001, 2002 by 
00013  *     Martijn Steenbakkers <martijn@nikhef.nl>,
00014  *     David Groep <davidg@nikhef.nl>,
00015  *     NIKHEF Amsterdam, the Netherlands
00016  */
00017 
00031 #ifndef LCMAPS_LOG_H
00032 #define LCMAPS_LOG_H
00033 
00034 /******************************************************************************
00035                              Include header files
00036 ******************************************************************************/
00037 #include <syslog.h>
00038 
00039 /******************************************************************************
00040  *                            Module definition
00041  *****************************************************************************/
00042 /******************************************************************************
00043 Function:       lcmaps_log()
00044 Description:    Log information to file and or syslog
00045 Parameters:
00046                 prty:    syslog priority (if 0 don't syslog)
00047                 fmt:     string format
00048 Returns:        0 succes
00049                 1 failure
00050 ******************************************************************************/
00051 extern int lcmaps_log(
00052         int prty,
00053         char * fmt,
00054         ...
00055 );
00056 
00057 /******************************************************************************
00058 Function:       lcmaps_log_debug()
00059 Description:    Print debugging information
00060 Parameters:
00061                 debug_lvl: debugging level
00062                 fmt:       string format
00063 Returns:        0 succes
00064                 1 failure
00065 ******************************************************************************/
00066 extern int lcmaps_log_debug(
00067         int debug_lvl,
00068         char * fmt,
00069         ...
00070 );
00071 
00072 /******************************************************************************
00073 Function:       lcmaps_log_time()
00074 Description:    Log information to file and or syslog with a timestamp
00075 Parameters:
00076                 prty:    syslog priority (if 0 don't syslog)
00077                 fmt:     string format
00078 Returns:        0 succes
00079                 1 failure
00080 ******************************************************************************/
00081 extern int lcmaps_log_time(
00082         int prty, 
00083         char * fmt, 
00084         ...
00085 );
00086 
00087 /******************************************************************************
00088 Function:       lcmaps_log_a_string()
00089 Description:    Log a string according to the passed format to file and or syslog
00090 Parameters:
00091                 prty:       syslog priority (if 0 don't syslog)
00092                 fmt:        string format
00093                 the_string: the string
00094 Returns:        0 succes
00095                 1 failure
00096 ******************************************************************************/
00097 extern int lcmaps_log_a_string(
00098         int prty,
00099         char * fmt,
00100         char * the_string
00101 );
00102 
00103 /******************************************************************************
00104 Function:       lcmaps_log_a_string_debug()
00105 Description:    Print debugging information
00106 Parameters:
00107                 debug_lvl:  debugging level
00108                 fmt:        string format
00109                 the_string: the string
00110 Returns:        0 succes
00111                 1 failure
00112 ******************************************************************************/
00113 extern int lcmaps_log_a_string_debug(
00114         int debug_lvl,
00115         char * fmt,
00116         char * the_string
00117 );
00118 #endif /* LCMAPS_LOG_H */
00119 
00120 /******************************************************************************
00121 CVS Information:
00122     $Source: /cvs/jra1mw/org.glite.security.lcmaps/interface/lcmaps_log.h,v $
00123     $Date: 2004/10/13 16:37:57 $
00124     $Revision: 1.3 $
00125     $Author: msteenba $
00126 ******************************************************************************/

Generated on Sun May 29 21:22:10 2005 for lcmaps by doxygen 1.3.5