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
ac00799d
Kaydet (Commit)
ac00799d
authored
Eyl 17, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improved Filter documentation.
üst
c8c8c696
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
logging.rst
Doc/library/logging.rst
+14
-0
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
ac00799d
...
@@ -1465,6 +1465,8 @@ When this script is run, the output should look something like this::
...
@@ -1465,6 +1465,8 @@ When this script is run, the output should look something like this::
2008-01-18 14:49:54,033 d.e.f WARNING IP: 127.0.0.1 User: jim A message at WARNING level with 2 parameters
2008-01-18 14:49:54,033 d.e.f WARNING IP: 127.0.0.1 User: jim A message at WARNING level with 2 parameters
.. _filters-contextual:
Using Filters to impart contextual information
Using Filters to impart contextual information
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
@@ -2852,6 +2854,18 @@ etc.) This means that events which have been generated by descendant loggers
...
@@ -2852,6 +2854,18 @@ etc.) This means that events which have been generated by descendant loggers
will not be filtered by a logger'
s
filter
setting
,
unless
the
filter
has
also
will not be filtered by a logger'
s
filter
setting
,
unless
the
filter
has
also
been
applied
to
those
descendant
loggers
.
been
applied
to
those
descendant
loggers
.
Other
uses
for
filters
^^^^^^^^^^^^^^^^^^^^^^
Although
filters
are
used
primarily
to
filter
records
based
on
more
sophisticated
criteria
than
levels
,
they
get
to
see
every
record
which
is
processed
by
the
handler
or
logger
they
're attached to: this can be useful if
you want to do things like counting how many records were processed by a
particular logger or handler, or adding, changing or removing attributes in
the LogRecord being processed. Obviously changing the LogRecord needs to be
done with some care, but it does allow the injection of contextual information
into logs (see :ref:`filters-contextual`).
.. _log-record:
.. _log-record:
LogRecord Objects
LogRecord Objects
...
...
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