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

_lcas_log.h File Reference

Internal header file for LCAS logging routines. More...

#include "lcas_log.h"

Include dependency graph for _lcas_log.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define MAX_LOG_BUFFER_SIZE   2048
#define DO_USRLOG   ((unsigned short)0x0001)
#define DO_SYSLOG   ((unsigned short)0x0002)

Functions

int lcas_log_open (char *path, FILE *fp, unsigned short logtype)
 Start logging. More...

int lcas_log_close ()
 Stop logging. More...


Detailed Description

Internal header file for LCAS logging routines.

Author:
Martijn Steenbakkers for the EU DataGrid.

For internal use only.

Definition in file _lcas_log.h.


Define Documentation

#define DO_SYSLOG   ((unsigned short)0x0002)
 

flag to indicate that syslogging has to be done

For internal use only.

Definition at line 34 of file _lcas_log.h.

#define DO_USRLOG   ((unsigned short)0x0001)
 

flag to indicate that user logging has to be done

For internal use only.

Definition at line 32 of file _lcas_log.h.

#define MAX_LOG_BUFFER_SIZE   2048
 

Maximum logging buffer size, length of log may not exceed this number

For internal use only.

Definition at line 29 of file _lcas_log.h.


Function Documentation

int lcas_log_close ( )
 

Stop logging.

For internal use only.

Definition at line 225 of file lcas_log.c.

int lcas_log_open ( char * path,
FILE * fp,
unsigned short logtype )
 

Start logging.

This function should only be used by the LCAS itself. It opens the logfile and tries to set the debugging level in the following order:

  1. Try if DEBUG_LEVEL > 0
  2. Try if environment variable LCAS_DEBUG_LEVEL is set and if it is an integer > 0
  3. Otherwise set debug_level = 0;
Parameters:
path   path of logfile.
fp   file pointer to already opened file (or NULL)
logtype   DO_USRLOG, DO_SYSLOG
Return values:
0   succes.
1   failure.

For internal use only.

Definition at line 58 of file lcas_log.c.


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