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 00025 #ifndef _LCMAPS_LOG_H 00026 #define _LCMAPS_LOG_H 00027 00028 /****************************************************************************** 00029 Include header files 00030 ******************************************************************************/ 00031 #include "lcmaps_log.h" 00032 00033 /****************************************************************************** 00034 Define constants 00035 ******************************************************************************/ 00036 #define MAX_LOG_BUFFER_SIZE 2048 00039 #define DO_USRLOG ((unsigned short)0x0001) 00041 #define DO_SYSLOG ((unsigned short)0x0002) 00044 /****************************************************************************** 00045 * Module definition 00046 *****************************************************************************/ 00047 00048 /****************************************************************************** 00049 Function: lcmaps_log_open() 00050 Description: Start logging 00051 Parameters: 00052 path: path of logfile 00053 fp: file pointer to already opened file (or NULL) 00054 logtype: DO_USRLOG, DO_SYSLOG 00055 Returns: 0 succes 00056 1 failure 00057 ******************************************************************************/ 00058 extern int lcmaps_log_open( 00059 char * path, 00060 FILE * fp, 00061 unsigned short logtype 00062 ); 00063 00064 /****************************************************************************** 00065 Function: lcmaps_log_close() 00066 Description: Stop logging 00067 Parameters: 00068 Returns: 0 succes 00069 1 failure 00070 ******************************************************************************/ 00071 extern int lcmaps_log_close(); 00072 00073 #endif /* _LCMAPS_LOG_H */ 00074 00075 /****************************************************************************** 00076 CVS Information: 00077 $Source: /cvs/jra1mw/org.glite.security.lcmaps/src/pluginmanager/_lcmaps_log.h,v $ 00078 $Date: 2004/10/13 16:37:58 $ 00079 $Revision: 1.3 $ 00080 $Author: msteenba $ 00081 ******************************************************************************/