| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | List of all members
GaudiKernel.ProcessJobOptions.LogFilter Class Reference
Inheritance diagram for GaudiKernel.ProcessJobOptions.LogFilter:
[legend]
Collaboration diagram for GaudiKernel.ProcessJobOptions.LogFilter:
[legend]

## Public Member Functions
def | __init__
def | filter (self, record)
def | printOn
def | printOff
def | disable
def | enable

## Public Attributes
| printing_level
| enabled
| threshold

## Detailed Description

Definition at line 23 of file ProcessJobOptions.py.

## Constructor & Destructor Documentation

def GaudiKernel.ProcessJobOptions.LogFilter.__init__ | ( |  | self,
|  |  | name = `""`
| ) |  |

Definition at line 24 of file ProcessJobOptions.py.

24 def __init__(self, name = ""):
25 logging.Filter.__init__(self, name)
26 self.printing_level = 0
27 self.enabled = True
28 self.threshold = logging.WARNING
GaudiKernel.ProcessJobOptions.LogFilter.__init__
def __init__
Definition: ProcessJobOptions.py:24
GaudiKernel.ProcessJobOptions.LogFilter.threshold
threshold
Definition: ProcessJobOptions.py:28
GaudiKernel.ProcessJobOptions.LogFilter.printing_level
printing_level
Definition: ProcessJobOptions.py:26
GaudiKernel.ProcessJobOptions.LogFilter.enabled
enabled
Definition: ProcessJobOptions.py:27

## Member Function Documentation

def GaudiKernel.ProcessJobOptions.LogFilter.disable | ( |  | self,
|  |  | allowed = `logging.WARNING`
| ) |  |

Definition at line 49 of file ProcessJobOptions.py.

49 def disable(self, allowed = logging.WARNING):
50 self.enabled = False
51 self.threshold = allowed
GaudiKernel.ProcessJobOptions.LogFilter.disable
def disable
Definition: ProcessJobOptions.py:49
GaudiKernel.ProcessJobOptions.LogFilter.threshold
threshold
Definition: ProcessJobOptions.py:28
GaudiKernel.ProcessJobOptions.LogFilter.enabled
enabled
Definition: ProcessJobOptions.py:27

def GaudiKernel.ProcessJobOptions.LogFilter.enable | ( |  | self,
|  |  | allowed = `logging.WARNING`
| ) |  |

Definition at line 52 of file ProcessJobOptions.py.

52 def enable(self, allowed = logging.WARNING):
53 self.enabled = True
54 self.threshold = allowed
55
GaudiKernel.ProcessJobOptions.LogFilter.enable
def enable
Definition: ProcessJobOptions.py:52
GaudiKernel.ProcessJobOptions.LogFilter.threshold
threshold
Definition: ProcessJobOptions.py:28
GaudiKernel.ProcessJobOptions.LogFilter.enabled
enabled
Definition: ProcessJobOptions.py:27

def GaudiKernel.ProcessJobOptions.LogFilter.filter | ( |  | self,
|  |  | record
| ) |  |

Definition at line 29 of file ProcessJobOptions.py.

29 def filter(self, record):
30 return record.levelno >= self.threshold or (self.enabled and self.printing_level <= 0)
GaudiKernel.ProcessJobOptions.LogFilter.filter
def filter(self, record)
Definition: ProcessJobOptions.py:29
GaudiKernel.ProcessJobOptions.LogFilter.threshold
threshold
Definition: ProcessJobOptions.py:28
GaudiKernel.ProcessJobOptions.LogFilter.printing_level
printing_level
Definition: ProcessJobOptions.py:26
GaudiKernel.ProcessJobOptions.LogFilter.enabled
enabled
Definition: ProcessJobOptions.py:27

def GaudiKernel.ProcessJobOptions.LogFilter.printOff | ( |  | self,
|  |  | step = `1`
| ) |  |

    Increase the printing_level of 'step' units. ( >0 means no print)

Definition at line 44 of file ProcessJobOptions.py.

44 def printOff(self, step = 1):
45 """
46 Increase the printing_level of 'step' units. ( >0 means no print)
47 """
48 self.printing_level += step
GaudiKernel.ProcessJobOptions.LogFilter.printing_level
printing_level
Definition: ProcessJobOptions.py:26
GaudiKernel.ProcessJobOptions.LogFilter.printOff
def printOff
Definition: ProcessJobOptions.py:44

def GaudiKernel.ProcessJobOptions.LogFilter.printOn | ( |  | self,
|  |  | step = `1`,
|  |  | force = `False`
| ) |  |

    Decrease the printing_level of 'step' units. ( >0 means no print)
    The level cannot go below 0, unless the force flag is set to True.
    A negative value of the threshold disables subsequent "PrintOff"s.

Definition at line 31 of file ProcessJobOptions.py.

31 def printOn(self, step = 1, force = False):
32 """
33 Decrease the printing_level of 'step' units. ( >0 means no print)
34 The level cannot go below 0, unless the force flag is set to True.
35 A negative value of the threshold disables subsequent "PrintOff"s.
36 """
37 if force:
38 self.printing_level -= step
39 else:
40 if self.printing_level > step:
41 self.printing_level -= step
42 else:
43 self.printing_level = 0
GaudiKernel.ProcessJobOptions.LogFilter.printOn
def printOn
Definition: ProcessJobOptions.py:31
GaudiKernel.ProcessJobOptions.LogFilter.printing_level
printing_level
Definition: ProcessJobOptions.py:26

## Member Data Documentation

GaudiKernel.ProcessJobOptions.LogFilter.enabled

Definition at line 27 of file ProcessJobOptions.py.

GaudiKernel.ProcessJobOptions.LogFilter.printing_level

Definition at line 26 of file ProcessJobOptions.py.

GaudiKernel.ProcessJobOptions.LogFilter.threshold

Definition at line 28 of file ProcessJobOptions.py.

The documentation for this class was generated from the following file:

- GaudiKernel/python/GaudiKernel/ProcessJobOptions.py