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
f0c74360
Kaydet (Commit)
f0c74360
authored
Ock 23, 2019
tarafından
Géry Ogam
Kaydeden (comit)
Vinay Sajip
Ock 23, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-35722: Updated the documentation for the 'disable_existing_loggers' parameter (GH-11525)
üst
da6424e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
logging.rst
Doc/howto/logging.rst
+5
-5
logging.config.rst
Doc/library/logging.config.rst
+5
-5
No files found.
Doc/howto/logging.rst
Dosyayı görüntüle @
f0c74360
...
...
@@ -695,15 +695,15 @@ 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
will cause any
non-root 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,
``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``.
...
...
@@ -802,7 +802,7 @@ the best default behaviour.
If for some reason you *don't* want these messages printed in the absence of
any logging configuration, you can attach a do-nothing handler to the top-level
logger for your library. This avoids the message being printed, since a handler
will
be
always be found for the library's events: it just doesn't produce any
will always be found for the library's events: it just doesn't produce any
output. If the library user configures logging for application use, presumably
that configuration will add some handlers, and if levels are suitably
configured then logging calls made in library code will send output to those
...
...
Doc/library/logging.config.rst
Dosyayı görüntüle @
f0c74360
...
...
@@ -107,9 +107,9 @@ in :mod:`logging` itself) and defining handlers which are declared either in
enabled
.
The
default
is
``
True
``
because
this
enables
old
behaviour
in
a
backward
-
compatible
way
.
This
behaviour
is
to
disable
any
existing
loggers
unless
they
or
the
ir
ancestors
are
explicitly
named
in
the
logging
configuration
.
disable
any
existing
non
-
root
loggers
unless
the
y
or
their
ancestors
are
explicitly
named
in
the
logging
configuration
.
..
versionchanged
::
3.4
An
instance
of
a
subclass
of
:
class
:`~
configparser
.
RawConfigParser
`
is
...
...
@@ -313,8 +313,8 @@ otherwise, the context is used to determine what to instantiate.
If the specified value is ``True``, the configuration is processed
as described in the section on :ref:`logging-config-dict-incremental`.
* *disable_existing_loggers* - whether any existing
loggers are to b
e
disabled. This setting mirrors the parameter of the same name in
* *disable_existing_loggers* - whether any existing
non-root loggers ar
e
to be
disabled. This setting mirrors the parameter of the same name in
:func:`fileConfig`. If absent, this parameter defaults to ``True``.
This value is ignored if *incremental* is ``True``.
...
...
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