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
c58c7d48
Kaydet (Commit)
c58c7d48
authored
Eyl 18, 2014
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Closes #22436: Merged documentation update from 3.4.
üst
2f2920a1
2f1cd8a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
logging.rst
Doc/library/logging.rst
+11
-2
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
c58c7d48
...
...
@@ -118,7 +118,9 @@ is the module's name in the Python package namespace.
.. versionchanged:: 3.2
The *lvl* parameter now accepts a string representation of the
level such as '
INFO
' as an alternative to the integer constants
such as :const:`INFO`.
such as :const:`INFO`. Note, however, that levels are internally stored
as integers, and methods such as e.g. :meth:`getEffectiveLevel` and
:meth:`isEnabledFor` will return/expect to be passed integers.
.. method:: Logger.isEnabledFor(lvl)
...
...
@@ -134,7 +136,9 @@ is the module's name in the Python package namespace.
Indicates
the
effective
level
for
this
logger
.
If
a
value
other
than
:
const
:`
NOTSET
`
has
been
set
using
:
meth
:`
setLevel
`,
it
is
returned
.
Otherwise
,
the
hierarchy
is
traversed
towards
the
root
until
a
value
other
than
:
const
:`
NOTSET
`
is
found
,
and
that
value
is
returned
.
:
const
:`
NOTSET
`
is
found
,
and
that
value
is
returned
.
The
value
returned
is
an
integer
,
typically
one
of
:
const
:`
logging
.
DEBUG
`,
:
const
:`
logging
.
INFO
`
etc
.
..
method
::
Logger
.
getChild
(
suffix
)
...
...
@@ -1054,6 +1058,11 @@ functions.
of
the
defined
levels
is
passed
in
,
the
corresponding
string
representation
is
returned
.
Otherwise
,
the
string
'Level %s'
%
lvl
is
returned
.
..
note
::
Levels
are
internally
integers
(
as
they
need
to
be
compared
in
the
logging
logic
).
This
function
is
used
to
convert
between
an
integer
level
and
the
level
name
displayed
in
the
formatted
log
output
by
means
of
the
``%(
levelname
)
s
``
format
specifier
(
see
:
ref
:`
logrecord
-
attributes
`).
..
versionchanged
::
3.4
In
Python
versions
earlier
than
3.4
,
this
function
could
also
be
passed
a
text
level
,
and
would
return
the
corresponding
numeric
value
of
the
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