Public Member Functions | |
| def | __init__ |
| def | format |
Public Attributes | |
| prefix | |
Definition at line 6 of file ProcessJobOptions.py.
| def ProcessJobOptions::LogFormatter::__init__ | ( | self, | ||
fmt = None, |
||||
datefmt = None, |
||||
prefix = "# " | ||||
| ) |
| 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):
Definition at line 9 of file ProcessJobOptions.py.
1.4.7