Message144447
The basic time format in the logging module uses a comma instead of a dot to separate the seconds from the tenth of seconds:
import logging
logging.basicConfig(format='%(asctime)s %(message)s')
logging.warning('hello')
2011-09-23 09:08:53,739 hello
Using a dot seems to be more accepted, see:
ls -l --full-time
Java's default dates
python's datetime.datetime.isoformat( datetime.datetime.now() ) |
|
Date |
User |
Action |
Args |
2011-09-23 15:21:37 | yves@zioup.com | set | recipients:
+ yves@zioup.com |
2011-09-23 15:21:37 | yves@zioup.com | set | messageid: <1316791297.78.0.299394793338.issue13036@psf.upfronthosting.co.za> |
2011-09-23 15:21:37 | yves@zioup.com | link | issue13036 messages |
2011-09-23 15:21:36 | yves@zioup.com | create | |
|