| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
def | setPrefix
def | printOn
def | printOff
def | disable
def | enable

## Private Attributes
| _filter
| _formatter

## Detailed Description

Definition at line 52 of file ProcessJobOptions.py.

## Constructor & Destructor Documentation

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

Definition at line 53 of file ProcessJobOptions.py.

53
54 def __init__(self, stream = None, prefix = None):
55 if stream is None:
56 stream = sys.stdout
57 logging.StreamHandler.__init__(self, stream)
58 if prefix is None:
59 prefix = "# "
60 self._filter = LogFilter(_log.name)
61 self._formatter = LogFormatter(prefix = prefix)
62 self.setFormatter(self._formatter)
self.addFilter(self._filter)

## Member Function Documentation

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

Definition at line 77 of file ProcessJobOptions.py.

77
78 def disable(self, allowed = logging.WARNING):
self._filter.disable(allowed)

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

Definition at line 79 of file ProcessJobOptions.py.

79
80 def enable(self, allowed = logging.WARNING):
81 self._filter.enable(allowed)

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

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

Definition at line 72 of file ProcessJobOptions.py.

72
73 def printOff(self, step = 1):
74 """
75 Increase the printing_level of 'step' units. ( >0 means no print)
76 """
self._filter.printOff(step)

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 65 of file ProcessJobOptions.py.

65
66 def printOn(self, step = 1, force = False):
67 """
68 Decrease the printing_level of 'step' units. ( >0 means no print)
69 The level cannot go below 0, unless the force flag is set to True.
70 A negative value of the threshold disables subsequent "PrintOff"s.
71 """
self._filter.printOn(step, force)

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

Definition at line 63 of file ProcessJobOptions.py.

63
64 def setPrefix(self, prefix):
self._formatter.prefix = prefix

## Member Data Documentation

GaudiKernel.ProcessJobOptions.ConsoleHandler._filter
| private

Definition at line 59 of file ProcessJobOptions.py.

GaudiKernel.ProcessJobOptions.ConsoleHandler._formatter
| private

Definition at line 60 of file ProcessJobOptions.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/python/GaudiKernel/ProcessJobOptions.py