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
d46a31fc
Kaydet (Commit)
d46a31fc
authored
Ara 19, 2013
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19902: Added list of logging levels.
üst
437c4ae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
logging.rst
Doc/library/logging.rst
+32
-0
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
d46a31fc
...
...
@@ -114,6 +114,8 @@ is the module's name in the Python package namespace.
If
the
root
is
reached
,
and
it
has
a
level
of
NOTSET
,
then
all
messages
will
be
processed
.
Otherwise
,
the
root
's level will be used as the effective level.
See :ref:`levels` for a list of levels.
.. method:: Logger.isEnabledFor(lvl)
...
...
@@ -281,6 +283,35 @@ is the module's name in the Python package namespace.
..
versionchanged
::
2.5
*
func
*
and
*
extra
*
were
added
.
..
_levels
:
Logging
Levels
--------------
The
numeric
values
of
logging
levels
are
given
in
the
following
table
.
These
are
primarily
of
interest
if
you
want
to
define
your
own
levels
,
and
need
them
to
have
specific
values
relative
to
the
predefined
levels
.
If
you
define
a
level
with
the
same
numeric
value
,
it
overwrites
the
predefined
value
;
the
predefined
name
is
lost
.
+--------------+---------------+
|
Level
|
Numeric
value
|
+==============+===============+
|
``
CRITICAL
``
|
50
|
+--------------+---------------+
|
``
ERROR
``
|
40
|
+--------------+---------------+
|
``
WARNING
``
|
30
|
+--------------+---------------+
|
``
INFO
``
|
20
|
+--------------+---------------+
|
``
DEBUG
``
|
10
|
+--------------+---------------+
|
``
NOTSET
``
|
0
|
+--------------+---------------+
..
_handler
:
Handler
Objects
...
...
@@ -321,6 +352,7 @@ subclasses. However, the :meth:`__init__` method in subclasses needs to call
severe
than
*
lvl
*
will
be
ignored
.
When
a
handler
is
created
,
the
level
is
set
to
:
const
:`
NOTSET
`
(
which
causes
all
messages
to
be
processed
).
See
:
ref
:`
levels
`
for
a
list
of
levels
.
..
method
::
Handler
.
setFormatter
(
form
)
...
...
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