| The Gaudi Framework v28r2p1 (f1a77ff4)

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

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

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

## Public Member Functions
def | __init__ (self, stream=None, prefix=None, with_time=False)
def | setPrefix (self, prefix)
def | printOn (self, step=1, force=False)
def | printOff (self, step=1)
def | disable (self, allowed=logging.WARNING)
def | enable (self, allowed=logging.WARNING)

## Private Attributes
| _filter
| _formatter

## Detailed Description

Definition at line 56 of file ProcessJobOptions.py.

## Constructor & Destructor Documentation

def GaudiKernel.ProcessJobOptions.ConsoleHandler.__init__ | ( |  | self,
|  |  | stream = `None`,
|  |  | prefix = `None`,
|  |  | with_time = `False`
| ) |  |

Definition at line 57 of file ProcessJobOptions.py.

57 def __init__(self, stream = None, prefix = None, with_time = False):
58 if stream is None:
59 stream = sys.stdout
60 logging.StreamHandler.__init__(self, stream)
61 if prefix is None:
62 prefix = "# "
63 self._filter = LogFilter(_log.name)
64 self._formatter = LogFormatter(prefix = prefix, with_time = with_time)
65 self.setFormatter(self._formatter)
66 self.addFilter(self._filter)
GaudiKernel.ProcessJobOptions.ConsoleHandler.__init__
def __init__(self, stream=None, prefix=None, with_time=False)
Definition: ProcessJobOptions.py:57
GaudiKernel.ProcessJobOptions.LogFilter
Definition: ProcessJobOptions.py:23
GaudiKernel.ProcessJobOptions.LogFormatter
Definition: ProcessJobOptions.py:7
GaudiKernel.ProcessJobOptions.ConsoleHandler._filter
_filter
Definition: ProcessJobOptions.py:63
GaudiKernel.ProcessJobOptions.ConsoleHandler._formatter
_formatter
Definition: ProcessJobOptions.py:64

## Member Function Documentation

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

Definition at line 81 of file ProcessJobOptions.py.

81 def disable(self, allowed = logging.WARNING):
82 self._filter.disable(allowed)
GaudiKernel.ProcessJobOptions.ConsoleHandler.disable
def disable(self, allowed=logging.WARNING)
Definition: ProcessJobOptions.py:81

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

Definition at line 83 of file ProcessJobOptions.py.

83 def enable(self, allowed = logging.WARNING):
84 self._filter.enable(allowed)
85
GaudiKernel.ProcessJobOptions.ConsoleHandler.enable
def enable(self, allowed=logging.WARNING)
Definition: ProcessJobOptions.py:83

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

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

Definition at line 76 of file ProcessJobOptions.py.

76 def printOff(self, step = 1):
77 """
78 Increase the printing_level of 'step' units. ( >0 means no print)
79 """
80 self._filter.printOff(step)
GaudiKernel.ProcessJobOptions.ConsoleHandler.printOff
def printOff(self, step=1)
Definition: ProcessJobOptions.py:76

def GaudiKernel.ProcessJobOptions.ConsoleHandler.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 69 of file ProcessJobOptions.py.

69 def printOn(self, step = 1, force = False):
70 """
71 Decrease the printing_level of 'step' units. ( >0 means no print)
72 The level cannot go below 0, unless the force flag is set to True.
73 A negative value of the threshold disables subsequent "PrintOff"s.
74 """
75 self._filter.printOn(step, force)
GaudiKernel.ProcessJobOptions.ConsoleHandler.printOn
def printOn(self, step=1, force=False)
Definition: ProcessJobOptions.py:69

def GaudiKernel.ProcessJobOptions.ConsoleHandler.setPrefix | ( |  | self,
|  |  | prefix
| ) |  |

Definition at line 67 of file ProcessJobOptions.py.

67 def setPrefix(self, prefix):
68 self._formatter.prefix = prefix
GaudiKernel.ProcessJobOptions.ConsoleHandler.setPrefix
def setPrefix(self, prefix)
Definition: ProcessJobOptions.py:67

## Member Data Documentation

GaudiKernel.ProcessJobOptions.ConsoleHandler._filter
| private

Definition at line 63 of file ProcessJobOptions.py.

GaudiKernel.ProcessJobOptions.ConsoleHandler._formatter
| private

Definition at line 64 of file ProcessJobOptions.py.

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

- GaudiKernel/python/GaudiKernel/ProcessJobOptions.py