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
2060e422
Kaydet (Commit)
2060e422
authored
Mar 17, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #8162: logging: Clarified docstring and documentation for disable function.
üst
187f93d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
logging.rst
Doc/library/logging.rst
+5
-1
__init__.py
Lib/logging/__init__.py
+1
-1
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
2060e422
...
...
@@ -735,7 +735,11 @@ functions.
Provides an overriding level *lvl* for all loggers which takes precedence over
the logger'
s
own
level
.
When
the
need
arises
to
temporarily
throttle
logging
output
down
across
the
whole
application
,
this
function
can
be
useful
.
output
down
across
the
whole
application
,
this
function
can
be
useful
.
Its
effect
is
to
disable
all
logging
calls
of
severity
*
lvl
*
and
below
,
so
that
if
you
call
it
with
a
value
of
INFO
,
then
all
INFO
and
DEBUG
events
would
be
discarded
,
whereas
those
of
severity
WARNING
and
above
would
be
processed
according
to
the
logger
's effective level.
.. function:: addLevelName(lvl, levelName)
...
...
Lib/logging/__init__.py
Dosyayı görüntüle @
2060e422
...
...
@@ -1557,7 +1557,7 @@ def log(level, msg, *args, **kwargs):
def
disable
(
level
):
"""
Disable all logging calls
less severe than 'level'
.
Disable all logging calls
of severity 'level' and below
.
"""
root
.
manager
.
disable
=
level
...
...
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