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
7d101293
Kaydet (Commit)
7d101293
authored
Ara 26, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added logging documentation cross-references.
üst
b4ca59b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
logging-cookbook.rst
Doc/howto/logging-cookbook.rst
+17
-4
logging.rst
Doc/howto/logging.rst
+13
-0
No files found.
Doc/howto/logging-cookbook.rst
Dosyayı görüntüle @
7d101293
...
...
@@ -966,8 +966,8 @@ example. You would want to set *maxBytes* to an appropriate value.
.. _zeromq-handlers:
Subclassing QueueHandler
------------------------
Subclassing QueueHandler
- a ZeroMQ example
------------------------
-------------------
You can use a :class:`QueueHandler` subclass to send messages to other kinds
of queues, for example a ZeroMQ 'publish' socket. In the example below,the
...
...
@@ -1006,8 +1006,8 @@ data needed by the handler to create the socket::
self.queue.close()
Subclassing QueueListener
-------------------------
Subclassing QueueListener
- a ZeroMQ example
-------------------------
-------------------
You can also subclass :class:`QueueListener` to get messages from other kinds
of queues, for example a ZeroMQ 'subscribe' socket. Here's an example::
...
...
@@ -1024,4 +1024,17 @@ of queues, for example a ZeroMQ 'subscribe' socket. Here's an example::
return logging.makeLogRecord(json.loads(msg))
.. seealso::
Module :mod:`logging`
API reference for the logging module.
Module :mod:`logging.config`
Configuration API for the logging module.
Module :mod:`logging.handlers`
Useful handlers included with the logging module.
:ref:`A basic logging tutorial <logging-basic-tutorial>`
:ref:`A more advanced logging tutorial <logging-advanced-tutorial>`
Doc/howto/logging.rst
Dosyayı görüntüle @
7d101293
...
...
@@ -1015,3 +1015,16 @@ Also note that the core logging module only includes the basic handlers. If
you don't import :mod:`logging.handlers` and :mod:`logging.config`, they won't
take up any memory.
.. seealso::
Module :mod:`logging`
API reference for the logging module.
Module :mod:`logging.config`
Configuration API for the logging module.
Module :mod:`logging.handlers`
Useful handlers included with the logging module.
:ref:`A logging cookbook <logging-cookbook>`
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