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 
00018 #ifndef _LCAS_LOG_H
00019 #define _LCAS_LOG_H
00020 
00021 /******************************************************************************
00022                              Include header files
00023 ******************************************************************************/
00024 #include "lcas_log.h"
00025 
00026 /******************************************************************************
00027                                Define constants
00028 ******************************************************************************/
00029 #define MAX_LOG_BUFFER_SIZE 2048 
00032 #define DO_USRLOG           ((unsigned short)0x0001) 
00034 #define DO_SYSLOG           ((unsigned short)0x0002) 
00037 /******************************************************************************
00038  *                            Module definition
00039  *****************************************************************************/
00040 
00041 /******************************************************************************
00042 Function:       lcas_log_open()
00043 Description:    Start logging
00044 Parameters:
00045                 path:    path of logfile
00046                 fp:      file pointer to already opened file (or NULL)
00047                 logtype: DO_USRLOG, DO_SYSLOG
00048 Returns:        0 succes
00049                 1 failure
00050 ******************************************************************************/
00074 extern int lcas_log_open(
00075         char * path,
00076         FILE * fp,
00077         unsigned short logtype
00078 );
00079 
00080 /******************************************************************************
00081 Function:       lcas_log_close()
00082 Description:    Stop logging
00083 Parameters:
00084 Returns:        0 succes
00085                 1 failure
00086 ******************************************************************************/
00098 extern int lcas_log_close();
00099 
00100 #endif /* _LCAS_LOG_H */
00101 
00102 /******************************************************************************
00103 CVS Information:
00104     $Source: /cvs/fabric_mgt/gridification/lcas/src/_lcas_log.h,v $
00105     $Date: 2003/08/08 16:16:08 $
00106     $Revision: 2.5 $
00107     $Author: martijn $
00108 ******************************************************************************/

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