[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

akira report at bugs.python.org
Sat Feb 26 11:52:27 CET 2011


New submission from akira <4kir4.1i at gmail.com>:

Since Python 3.2 logging package doesn't support formatting flags for the `asctime` keyword, but the documentation uses them. For example in Doc/library/logging.rst:

  FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s'

should be replaced by:

  FORMAT = '%(asctime)s %(clientip)s %(user)-8s %(message)s'

The attached file 'doc-logging-asctime-r88640.patch' contains necessary changes.

An alternative solution would be to fix the logging package to restore the support.

----------
assignee: docs at python
components: Documentation
files: doc-logging-asctime-r88640.patch
keywords: patch
messages: 129524
nosy: akira, docs at python
priority: normal
severity: normal
status: open
title: logging doesn't support format flags for asctime keyword, but the docs use them
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file20906/doc-logging-asctime-r88640.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11330>
_______________________________________


More information about the Python-bugs-list mailing list