| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

Public Member Functions | Private Attributes

# ProcessJobOptions::ConsoleHandler Class Reference

List of all members.

## 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 ProcessJobOptions::ConsoleHandler::__init__ | ( |  | self,
|  |  | stream = `None`,
|  |  | prefix = `None`
| ) |  |

Definition at line 53 of file ProcessJobOptions.py.

    00054                                                     :
    00055         if stream is None:
    00056             stream = sys.stdout
    00057         logging.StreamHandler.__init__(self, stream)
    00058         if prefix is None:
    00059             prefix = "# "
    00060         self._filter = LogFilter(_log.name)
    00061         self._formatter = LogFormatter(prefix = prefix)
    00062         self.setFormatter(self._formatter)
            self.addFilter(self._filter)

## Member Function Documentation

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

Definition at line 77 of file ProcessJobOptions.py.

    00078                                                 :
            self._filter.disable(allowed)

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

Definition at line 79 of file ProcessJobOptions.py.

    00080                                                :
    00081         self._filter.enable(allowed)

def 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.

    00073                                 :
    00074         """
    00075         Increase the printing_level of 'step' units. ( >0 means no print)
    00076         """
            self._filter.printOff(step)

def 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.

    00066                                               :
    00067         """
    00068         Decrease the printing_level of 'step' units. ( >0 means no print)
    00069         The level cannot go below 0, unless the force flag is set to True.
    00070         A negative value of the threshold disables subsequent "PrintOff"s.
    00071         """
            self._filter.printOn(step, force)

def ProcessJobOptions::ConsoleHandler::setPrefix | ( |  | self,
|  |  | prefix
| ) |  |

Definition at line 63 of file ProcessJobOptions.py.

    00064                                :
            self._formatter.prefix = prefix

## Member Data Documentation

ProcessJobOptions::ConsoleHandler::_filter`[private]`

Definition at line 53 of file ProcessJobOptions.py.

ProcessJobOptions::ConsoleHandler::_formatter`[private]`

Definition at line 53 of file ProcessJobOptions.py.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines