Message54231
The default timestamp format used by the logging module
appends
a comma followed by a three-digit value representing
milliseconds,
e.g.:
2004-08-10 08:21:20,380 DEBUG <mytag> log message here
It would be nice if time.strptime() grokked this
specification for
the seconds in a timestamp so that applications which
want to
analyze log files can do so more easily. One
possibility is to
add a %s format specifier which recognizes NN,MMM as a
floating point value containing fractional seconds with
a comma
as the "decimal point".
Attached is a simple patch. I chose %s as the format
sequence
since it is related to %S.
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 16:08:19 | admin | link | issue1006786 messages |
| 2007-08-23 16:08:19 | admin | create | |
|