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
76ca3b43
Kaydet (Commit)
76ca3b43
authored
Eyl 27, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
logging: Updated library configuration documentation.
üst
3b69db27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
logging.rst
Doc/library/logging.rst
+20
-2
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
76ca3b43
...
...
@@ -526,10 +526,18 @@ should have the desired effect. If an organisation produces a number of
libraries
,
then
the
logger
name
specified
can
be
"orgname.foo"
rather
than
just
"foo"
.
**
PLEASE
NOTE
:**
It
is
strongly
advised
that
you
*
do
not
add
any
handlers
other
than
*
:
class
:`
NullHandler
`
*
to
your
library
's loggers*. This is because the
configuration of handlers is the prerogative of the application developer who
uses your library. The application developer knows their target audience and
what handlers are most appropriate for their application: if you add handlers
"under the hood", you might well interfere with their ability to carry out
unit tests and deliver logs which suit their requirements.
.. versionadded:: 3.1
The
:
class
:`
NullHandler
`
class
was
not
present
in
previous
versions
,
but
is
now
included
,
so
that
it
need
not
be
defined
in
library
code
.
The :class:`NullHandler` class was not present in previous versions, but is
now included, so that it need not be defined in library code.
...
...
@@ -2141,6 +2149,16 @@ for use by library developers.
This method does nothing.
.. method:: handle(record)
This method does nothing.
.. method:: createLock()
This method returns `None` for the lock, since there is no
underlying I/O to which access needs to be serialized.
See :ref:`library-config` for more information on how to use
:class:`NullHandler`.
...
...
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