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
0653fba5
Kaydet (Commit)
0653fba5
authored
Tem 06, 2017
tarafından
Vinay Sajip
Kaydeden (comit)
GitHub
Tem 06, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-30862: Updated Logger.setLevel documentation. (GH-2604)
üst
b4baacee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
logging.rst
Doc/library/logging.rst
+8
-4
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
0653fba5
...
...
@@ -94,10 +94,14 @@ is the module's name in the Python package namespace.
.. method:: Logger.setLevel(lvl)
Sets the threshold for this logger to *lvl*. Logging messages which are less
severe than *lvl* will be ignored. When a logger is created, the level is set to
:const:`NOTSET` (which causes all messages to be processed when the logger is
the root logger, or delegation to the parent when the logger is a non-root
logger). Note that the root logger is created with level :const:`WARNING`.
severe than *lvl* will be ignored; logging messages which have severity *lvl*
or higher will be emitted by whichever handler or handlers service this logger,
unless a handler'
s
level
has
been
set
to
a
higher
severity
level
than
*
lvl
*.
When
a
logger
is
created
,
the
level
is
set
to
:
const
:`
NOTSET
`
(
which
causes
all
messages
to
be
processed
when
the
logger
is
the
root
logger
,
or
delegation
to
the
parent
when
the
logger
is
a
non
-
root
logger
).
Note
that
the
root
logger
is
created
with
level
:
const
:`
WARNING
`.
The
term
'delegation to the parent'
means
that
if
a
logger
has
a
level
of
NOTSET
,
its
chain
of
ancestor
loggers
is
traversed
until
either
an
ancestor
with
...
...
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