Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ad52cb26
Kaydet (Commit)
ad52cb26
authored
Haz 13, 2011
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Closes #12206: documentation update for LogRecord constructor and Formatter.formatTime.
üst
0eb4ac4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
logging.rst
Doc/library/logging.rst
+10
-0
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
ad52cb26
...
...
@@ -416,6 +416,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
)
...
...
@@ -491,6 +498,9 @@ wire).
:param name: The name of the logger used to log the event represented by
this LogRecord.
:param level: The numeric level of the logging event (one of DEBUG, INFO etc.)
Note that this is converted to *two* attributes of the LogRecord:
``levelno`` for the numeric value and ``levelname`` for the
corresponding level name.
:param pathname: The full pathname of the source file where the logging call
was made.
:param lineno: The line number in the source file where the logging call was
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment