| The Gaudi Framework v30r0 (c919700c)

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

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

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__ (self, fmt=None, datefmt=None, prefix="# ", with_time=False)
def | format (self, record)

## Public Attributes
| prefix
| with_time

## Detailed Description

Definition at line 10 of file ProcessJobOptions.py.

## Constructor & Destructor Documentation

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

Definition at line 11 of file ProcessJobOptions.py.

11 def __init__(self, fmt=None, datefmt=None, prefix="# ", with_time=False):
12 logging.Formatter.__init__(self, fmt, datefmt)
13 self.prefix = prefix
14 self.with_time = with_time
15
GaudiKernel.ProcessJobOptions.LogFormatter.with_time
with_time
Definition: ProcessJobOptions.py:14
GaudiKernel.ProcessJobOptions.LogFormatter.__init__
def __init__(self, fmt=None, datefmt=None, prefix="# ", with_time=False)
Definition: ProcessJobOptions.py:11
GaudiKernel.ProcessJobOptions.LogFormatter.prefix
prefix
Definition: ProcessJobOptions.py:13

## Member Function Documentation

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

Definition at line 16 of file ProcessJobOptions.py.

16 def format(self, record):
17 fmsg = logging.Formatter.format(self, record)
18 prefix = self.prefix
19 if self.with_time:
20 prefix += '%f ' % time.time()
21 if record.levelno >= logging.WARNING:
22 prefix += record.levelname + ": "
23 s = "\n".join([prefix + line
24 for line in fmsg.splitlines()])
25 return s
26
27
GaudiKernel.ProcessJobOptions.LogFormatter.with_time
with_time
Definition: ProcessJobOptions.py:14
GaudiKernel.ProcessJobOptions.LogFormatter.prefix
prefix
Definition: ProcessJobOptions.py:13
GaudiKernel.ProcessJobOptions.LogFormatter.format
def format(self, record)
Definition: ProcessJobOptions.py:16

## Member Data Documentation

GaudiKernel.ProcessJobOptions.LogFormatter.prefix

Definition at line 13 of file ProcessJobOptions.py.

GaudiKernel.ProcessJobOptions.LogFormatter.with_time

Definition at line 14 of file ProcessJobOptions.py.

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

- GaudiKernel/python/GaudiKernel/ProcessJobOptions.py