Grid Community Toolkit
6.2.1629922860 (tag: v6.2.20210826)
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
myproxy
source
myproxy_log.h
1
/*
2
* myproxy_log.h
3
*
4
* Logging routines for myproxy server.
5
*/
6
#ifndef __MYPROXY_LOG_H
7
#define __MYPROXY_LOG_H
8
9
#include <stdio.h>
10
11
/* Include this for convenience */
12
#include <syslog.h>
13
14
/*
15
* myproxy_log_use_syslog()
16
*
17
* Use syslog with given name and facility for logging (as used for
18
* the syslog call. If facility == 0 then no logging to syslog will
19
* be done. name may be NULL indicate no name be used.
20
*/
21
void
myproxy_log_use_syslog(
int
facility,
22
const
char
*name);
23
24
25
/*
26
* myproxy_log_use_stream()
27
*
28
* Send log messages to the given stream. stream may be NULL which
29
* turns this off.
30
*/
31
void
myproxy_log_use_stream(FILE *stream);
32
33
/*
34
* myproxy_log()
35
*
36
* Log something. Takes arguments like sprintf().
37
*/
38
void
myproxy_log(
const
char
*format, ...);
39
40
/*
41
* mproxy_log_verror()
42
*
43
* Log the error condition as indicated in the verror context.
44
*/
45
void
myproxy_log_verror();
46
47
/*
48
* myproxy_log_perror()
49
*
50
* Log the error message followed by a description of the current
51
* errror in errno.
52
*/
53
void
myproxy_log_perror(
const
char
*format, ...);
54
55
/*
56
* myproxy_log_close()
57
*
58
* Shutdown logging and deallocate any memory associated with it.
59
* All further logging will be ignoe unless another myproxy_log_use_*()
60
* call is made.
61
*/
62
void
myproxy_log_close();
63
64
/*
65
* myproxy_debug_set_level()
66
*
67
* Turns debugging on or off, depending on wether value is non-zero
68
* or zero respectively. Returns previous value for debugging.
69
*/
70
int
myproxy_debug_set_level(
int
value);
71
72
/*
73
* myproxy_debug()
74
*
75
* Log a debugging message. Will only be displayed if debugging is
76
* enabled.
77
*/
78
void
myproxy_debug(
const
char
*format, ...);
79
80
#endif
/* __MYPROXY_LOG_H */
81
Generated by
1.8.5