diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-06-12 10:44:28 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-06-12 10:44:28 (GMT) |
commit | cdc751720ee7a13ac163da1eedf3a513386c98d4 (patch) | |
tree | 7f44354b14602ce73bbee6114fe9eab50bebc639 /Doc/library | |
parent | 0aaa9e1d7b16e92c0cbe9e40c037c38ba0427840 (diff) | |
download | cpython-cdc751720ee7a13ac163da1eedf3a513386c98d4.zip cpython-cdc751720ee7a13ac163da1eedf3a513386c98d4.tar.gz cpython-cdc751720ee7a13ac163da1eedf3a513386c98d4.tar.bz2 |
Updated Formatter.formatTime documentation.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/logging.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 76633db..20cd57c 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -453,6 +453,13 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on record. Otherwise, the ISO8601 format is used. The resulting string is returned. + This function uses a user-configurable function to convert the creation + time to a tuple. By default, :func:`time.localtime` is used; to change + this for a particular formatter instance, set the ``converter`` attribute + to a function with the same signature as :func:`time.localtime` or + :func:`time.gmtime`. To change it for all formatters, for example if you + want all logging times to be shown in GMT, set the ``converter`` + attribute in the ``Formatter`` class. .. method:: formatException(exc_info) |