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
61afd269
Kaydet (Commit)
61afd269
authored
Şub 19, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
logging: Documented warnings module integration.
üst
74cbd664
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
logging.rst
Doc/library/logging.rst
+22
-0
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
61afd269
...
...
@@ -2477,6 +2477,28 @@ module, you may not be able to use logging from within such handlers. This is
because
lock
implementations
in
the
:
mod
:`
threading
`
module
are
not
always
re
-
entrant
,
and
so
cannot
be
invoked
from
such
signal
handlers
.
Integration
with
the
warnings
module
------------------------------------
The
:
func
:`
captureWarnings
`
function
can
be
used
to
integrate
:
mod
:`
logging
`
with
the
:
mod
:`
warnings
`
module
.
..
function
::
captureWarnings
(
capture
)
This
function
is
used
to
turn
the
capture
of
warnings
by
logging
on
and
off
.
If
`
capture
`
is
`
True
`,
warnings
issued
by
the
:
mod
:`
warnings
`
module
will
be
redirected
to
the
logging
system
.
Specifically
,
a
warning
will
be
formatted
using
:
func
:`
warnings
.
formatwarning
`
and
the
resulting
string
logged
to
a
logger
named
"py.warnings"
with
a
severity
of
`
WARNING
`.
If
`
capture
`
is
`
False
`,
the
redirection
of
warnings
to
the
logging
system
will
stop
,
and
warnings
will
be
redirected
to
their
original
destinations
(
i
.
e
.
those
in
effect
before
`
captureWarnings
(
True
)`
was
called
).
Configuration
-------------
...
...
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