| # 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 | Public Attributes | List of all members
GaudiKernel.ProcessJobOptions.LogFormatter Class Reference
Inheritance diagram for GaudiKernel.ProcessJobOptions.LogFormatter:
[legend]
Collaboration diagram for GaudiKernel.ProcessJobOptions.LogFormatter:
[legend]

## Public Member Functions
def | __init__
def | format

## Public Attributes
| prefix

## Detailed Description

Definition at line 6 of file ProcessJobOptions.py.

## Constructor & Destructor Documentation

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

Definition at line 7 of file ProcessJobOptions.py.

7
8 def __init__(self, fmt=None, datefmt=None, prefix = "# "):
9 logging.Formatter.__init__(self, fmt, datefmt)
self.prefix = prefix

## Member Function Documentation

def GaudiKernel.ProcessJobOptions.LogFormatter.format | ( |  | self,
|  |  | record
| ) |  |

Definition at line 10 of file ProcessJobOptions.py.

10
11 def format(self, record):
12 fmsg = logging.Formatter.format(self, record)
13 prefix = self.prefix
14 if record.levelno >= logging.WARNING:
15 prefix += record.levelname + ": "
16 s = "\n".join([ prefix + line
17 for line in fmsg.splitlines() ])
18 return s

## Member Data Documentation

GaudiKernel.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_v25r0/GaudiKernel/python/GaudiKernel/ProcessJobOptions.py