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 _LCAS_LOG_H 00026 #define _LCAS_LOG_H 00027 00028 /****************************************************************************** 00029 Include header files 00030 ******************************************************************************/ 00031 #include "lcas_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: lcas_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 ******************************************************************************/ 00081 extern int lcas_log_open( 00082 char * path, 00083 FILE * fp, 00084 unsigned short logtype 00085 ); 00086 00087 /****************************************************************************** 00088 Function: lcas_log_close() 00089 Description: Stop logging 00090 Parameters: 00091 Returns: 0 succes 00092 1 failure 00093 ******************************************************************************/ 00105 extern int lcas_log_close(); 00106 00107 #endif /* _LCAS_LOG_H */ 00108 00109 /****************************************************************************** 00110 CVS Information: 00111 $Source: /cvs/jra1mw/org.glite.security.lcas/src/_lcas_log.h,v $ 00112 $Date: 2004/10/14 16:05:27 $ 00113 $Revision: 2.6 $ 00114 $Author: msteenba $ 00115 ******************************************************************************/