Package pyGlobus :: Module util :: Class GlobusXIODebug
[show private | hide private]
[frames | no frames]

Class GlobusXIODebug


Method Summary
  __init__(self, val)
Parse the environment variable setting Globus XIO debug,

Class Variable Summary
int ERROR = 1                                                                     
int INFO = 16                                                                    
int INFO_VERBOSE = 64                                                                    
int INTERNAL_TRACE = 8                                                                     
int PERF1 = 128                                                                   
int PERF2 = 256                                                                   
int STATE = 32                                                                    
str STDOUT_FILENAME = '-'
int TRACE = 4                                                                     
int WARNING = 2                                                                     

Method Details

__init__(self, val=None)
(Constructor)

Parse the environment variable setting Globus XIO debug,

setting attributes for 'level' and 'filename'

The name of the variable is GLOBUS_XIO_DEBUG The format is: <level> [,[[#]<file name>][,<flag>[,<timestamp_levels>]] Or at least that is the official format. However, timestamp levels is not documented, and "flags" seems irrelevant here, so only level and file name are really used.

If provided 'val' is used as the value to parse, otherwise it is fetched from the environment.

==> Extension: If GLOBUS_XIO_DEBUG has non-whitespace after <level> then that part to the "," is interpreted as a filename to read the real value from. The first line of that file is the value used. This rule is *not* applied recursively to this value.

Class Variable Details

ERROR

Type:
int
Value:
1                                                                     

INFO

Type:
int
Value:
16                                                                    

INFO_VERBOSE

Type:
int
Value:
64                                                                    

INTERNAL_TRACE

Type:
int
Value:
8                                                                     

PERF1

Type:
int
Value:
128                                                                   

PERF2

Type:
int
Value:
256                                                                   

STATE

Type:
int
Value:
32                                                                    

STDOUT_FILENAME

Type:
str
Value:
'-'                                                                    

TRACE

Type:
int
Value:
4                                                                     

WARNING

Type:
int
Value:
2                                                                     

Generated by Epydoc 2.1 on Tue Apr 4 14:32:55 2006 http://epydoc.sf.net