Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

ProcessJobOptions::LogFormatter Class Reference

List of all members.

Public Member Functions

def __init__
def format

Public Attributes

 prefix

Detailed Description

Definition at line 6 of file ProcessJobOptions.py.


Member Function Documentation

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

Definition at line 7 of file ProcessJobOptions.py.

00008                                                              :
00009         logging.Formatter.__init__(self, fmt, datefmt)
        self.prefix = prefix

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

Definition at line 10 of file ProcessJobOptions.py.

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


Member Data Documentation

Definition at line 9 of file ProcessJobOptions.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:33:52 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004