New submission from Yves Dorfsman <[email protected]>:
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() )
----------
components: Library (Lib)
messages: 144447
nosy: [email protected]
priority: normal
severity: normal
status: open
title: time format in logging is wrong
type: behavior
versions: Python 3.2
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13036>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com