Definition at line 20 of file ProcessJobOptions.py.
◆ __init__()
| def GaudiKernel.ProcessJobOptions.LogFormatter.__init__ |
( |
|
self, |
|
|
|
fmt = None, |
|
|
|
datefmt = None, |
|
|
|
prefix = "# ", |
|
|
|
with_time = False |
|
) |
| |
Definition at line 21 of file ProcessJobOptions.py.
21 def __init__(self, fmt=None, datefmt=None, prefix="# ", with_time=False):
22 logging.Formatter.__init__(self, fmt, datefmt)
24 self.with_time = with_time
◆ format()
| def GaudiKernel.ProcessJobOptions.LogFormatter.format |
( |
|
self, |
|
|
|
record |
|
) |
| |
Definition at line 26 of file ProcessJobOptions.py.
27 fmsg = logging.Formatter.format(self, record)
30 prefix +=
"%f " % time.time()
31 if record.levelno >= logging.WARNING:
32 prefix += record.levelname +
": "
33 s =
"\n".join([prefix + line
for line
in fmsg.splitlines()])
◆ prefix
| GaudiKernel.ProcessJobOptions.LogFormatter.prefix |
◆ with_time
| GaudiKernel.ProcessJobOptions.LogFormatter.with_time |
The documentation for this class was generated from the following file: