| # Gaudi Framework, version v21r6 |

Home |  | Generated: 11 Nov 2009

# ProcessJobOptions::LogFormatter Class Reference

List of all members.

## Detailed Description

Definition at line 6 of file ProcessJobOptions.py.

## Public Member Functions
def | __init__
def | format
## Public Attributes
| prefix

## Member Function Documentation

def ProcessJobOptions::LogFormatter::__init__ | ( |  | self,
|  |  | fmt = `None`,
|  |  | datefmt = `None`,
|  |  | prefix = `"# "` |
| ) |  |  |

Definition at line 7 of file ProcessJobOptions.py.

    00007                                                              :
    00008         logging.Formatter.__init__(self, fmt, datefmt)
    00009         self.prefix = prefix
        def format(self, record):

def ProcessJobOptions::LogFormatter::format | ( |  | self,
|  |  | record |
| ) |  |  |

Definition at line 10 of file ProcessJobOptions.py.

    00010                             :
    00011         fmsg = logging.Formatter.format(self, record)
    00012         prefix = self.prefix
    00013         if record.levelno >= logging.WARNING:
    00014             prefix += record.levelname + ": "
    00015         s = "\n".join([ prefix + line
    00016                         for line in fmsg.splitlines() ])
    00017         return s
    00018
    class LogFilter(logging.Filter):

## Member Data Documentation

ProcessJobOptions::LogFormatter::prefix

Definition at line 9 of file ProcessJobOptions.py.

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

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