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
c46102c9
Kaydet (Commit)
c46102c9
authored
Nis 08, 2011
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated Formatter documentation.
üst
2e3607c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
logging.rst
Doc/library/logging.rst
+9
-2
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
c46102c9
...
...
@@ -405,7 +405,7 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
:
ref
:`
logrecord
-
attributes
`.
..
class
::
Formatter
(
fmt
=
None
,
datefmt
=
None
)
..
class
::
Formatter
(
fmt
=
None
,
datefmt
=
None
,
style
=
'%'
)
Returns
a
new
instance
of
the
:
class
:`
Formatter
`
class
.
The
instance
is
initialized
with
a
format
string
for
the
message
as
a
whole
,
as
well
as
a
...
...
@@ -413,6 +413,14 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
specified
,
``
'%(message)s'
``
is
used
.
If
no
*
datefmt
*
is
specified
,
the
ISO8601
date
format
is
used
.
The
*
style
*
parameter
can
be
one
of
'%'
,
'{'
or
'$'
and
determines
how
the
format
string
will
be
merged
with
its
data
:
using
one
of
%-
formatting
,
:
meth
:`
str
.
format
`
or
:
class
:`
string
.
Template
`.
..
versionchanged
::
3.2
The
*
style
*
parameter
was
added
.
..
method
::
format
(
record
)
The
record
's attribute dictionary is used as the operand to a string
...
...
@@ -691,7 +699,6 @@ LoggerAdapter Objects
information
into
logging
calls
.
For
a
usage
example
,
see
the
section
on
:
ref
:`
adding
contextual
information
to
your
logging
output
<
context
-
info
>`.
..
class
::
LoggerAdapter
(
logger
,
extra
)
Returns
an
instance
of
:
class
:`
LoggerAdapter
`
initialized
with
an
...
...
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