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
8bf2aea9
Kaydet (Commit)
8bf2aea9
authored
Nis 10, 2012
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merged updates to logging reference and HOWTO from 3.2.
üst
eba24280
074faff9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
logging.rst
Doc/howto/logging.rst
+16
-0
logging.rst
Doc/library/logging.rst
+15
-2
No files found.
Doc/howto/logging.rst
Dosyayı görüntüle @
8bf2aea9
...
...
@@ -651,6 +651,22 @@ You can see that the config file approach has a few advantages over the Python
code approach, mainly separation of configuration and code and the ability of
noncoders to easily modify the logging properties.
.. warning:: The :func:`fileConfig` function takes a default parameter,
``disable_existing_loggers``, which defaults to ``True`` for reasons of
backward compatibility. This may or may not be what you want, since it
will cause any loggers existing before the :func:`fileConfig` call to
be disabled unless they (or an ancestor) are explicitly named in the
configuration. Please refer to the reference documentation for more
information, and specify ``False`` for this parameter if you wish.
The dictionary passed to :func:`dictConfig` can also specify a Boolean
value with key ``disable_existing_loggers``, which if not specified
explicitly in the dictionary also defaults to being interpreted as
``True``. This leads to the logger-disabling behaviour described above,
which may not be what you want - in which case, provide the key
explicitly with a value of ``False``.
.. currentmodule:: logging
Note that the class names referenced in config files need to be either relative
...
...
Doc/library/logging.rst
Dosyayı görüntüle @
8bf2aea9
...
...
@@ -49,9 +49,22 @@ listed below.
Logger
Objects
--------------
Loggers
have
the
following
attributes
and
methods
.
Note
that
Loggers
are
never
Loggers
have
the
following
attributes
and
methods
.
Note
that
Loggers
are
never
instantiated
directly
,
but
always
through
the
module
-
level
function
``
logging
.
getLogger
(
name
)``.
``
logging
.
getLogger
(
name
)``.
Multiple
calls
to
:
func
:`
getLogger
`
with
the
same
name
will
always
return
a
reference
to
the
same
Logger
object
.
The
``
name
``
is
potentially
a
period
-
separated
hierarchical
value
,
like
``
foo
.
bar
.
baz
``
(
though
it
could
also
be
just
plain
``
foo
``,
for
example
).
Loggers
that
are
further
down
in
the
hierarchical
list
are
children
of
loggers
higher
up
in
the
list
.
For
example
,
given
a
logger
with
a
name
of
``
foo
``,
loggers
with
names
of
``
foo
.
bar
``,
``
foo
.
bar
.
baz
``,
and
``
foo
.
bam
``
are
all
descendants
of
``
foo
``.
The
logger
name
hierarchy
is
analogous
to
the
Python
package
hierarchy
,
and
identical
to
it
if
you
organise
your
loggers
on
a
per
-
module
basis
using
the
recommended
construction
``
logging
.
getLogger
(
__name__
)``.
That
's because in a module, ``__name__``
is the module'
s
name
in
the
Python
package
namespace
.
..
class
::
Logger
...
...
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