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) 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 LCMAPS_LOG_H
00025 #define LCMAPS_LOG_H
00026 
00027 /******************************************************************************
00028                              Include header files
00029 ******************************************************************************/
00030 #include <syslog.h>
00031 
00032 /******************************************************************************
00033  *                            Module definition
00034  *****************************************************************************/
00035 /******************************************************************************
00036 Function:       lcmaps_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 ******************************************************************************/
00044 extern int lcmaps_log(
00045         int prty,
00046         char * fmt,
00047         ...
00048 );
00049 
00050 /******************************************************************************
00051 Function:       lcmaps_log_debug()
00052 Description:    Print debugging information
00053 Parameters:
00054                 debug_lvl: debugging level
00055                 fmt:       string format
00056 Returns:        0 succes
00057                 1 failure
00058 ******************************************************************************/
00059 extern int lcmaps_log_debug(
00060         int debug_lvl,
00061         char * fmt,
00062         ...
00063 );
00064 
00065 /******************************************************************************
00066 Function:       lcmaps_log_time()
00067 Description:    Log information to file and or syslog with a timestamp
00068 Parameters:
00069                 prty:    syslog priority (if 0 don't syslog)
00070                 fmt:     string format
00071 Returns:        0 succes
00072                 1 failure
00073 ******************************************************************************/
00074 extern int lcmaps_log_time(
00075         int prty, 
00076         char * fmt, 
00077         ...
00078 );
00079 
00080 #endif /* LCMAPS_LOG_H */
00081 
00082 /******************************************************************************
00083 CVS Information:
00084     $Source: /cvs/fabric_mgt/gridification/lcmaps/include/lcmaps_log.h,v $
00085     $Date: 2003/07/16 12:53:23 $
00086     $Revision: 1.6 $
00087     $Author: martijn $
00088 ******************************************************************************/

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