| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

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.

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:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:57:20 2011 for GaudiKernel by doxygen 1.4.7