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
b5902e60
Kaydet (Commit)
b5902e60
authored
Ock 15, 2009
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Made minor changes/corrections in markup. Added a couple of section headings.
üst
4f69b7e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
21 deletions
+29
-21
logging.rst
Doc/library/logging.rst
+29
-21
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
b5902e60
...
...
@@ -524,6 +524,9 @@ decides to actually dispatch an event, the :meth:`emit` method is used to send
the message to its destination. Most user-defined subclasses of :class:`Handler`
will need to override this :meth:`emit`.
Useful Handlers
---------------
In addition to the base :class:`Handler` class, many useful subclasses are
provided:
...
...
@@ -532,40 +535,42 @@ provided:
#. :class:`FileHandler` instances send error messages to disk files.
#. :class:`
handlers.
BaseRotatingHandler` is the base class for handlers that
#. :class:`BaseRotatingHandler` is the base class for handlers that
rotate log files at a certain point. It is not meant to be instantiated
directly. Instead, use :class:`RotatingFileHandler` or
:class:`TimedRotatingFileHandler`.
#. :class:`
handlers.RotatingFileHandler` instances send error messages to disk files,
with support for maximum log file sizes and log file rotation.
#. :class:`
RotatingFileHandler` instances send error messages to disk
files,
with support for maximum log file sizes and log file rotation.
#. :class:`
handlers.TimedRotatingFileHandler` instances send error messages to disk files
rotating the log file at certain timed intervals.
#. :class:`
TimedRotatingFileHandler` instances send error messages to
disk files,
rotating the log file at certain timed intervals.
#. :class:`handlers.SocketHandler` instances send error messages to TCP/IP sockets.
#. :class:`SocketHandler` instances send error messages to TCP/IP
sockets.
#. :class:`handlers.DatagramHandler` instances send error messages to UDP sockets.
#. :class:`DatagramHandler` instances send error messages to UDP
sockets.
#. :class:`
handlers.SMTPHandler` instances send error messages to a designated email
address.
#. :class:`
SMTPHandler` instances send error messages to a designated
email
address.
#. :class:`
handlers.SysLogHandler` instances send error messages to a Unix syslog daemon,
possibly on a remote machine.
#. :class:`
SysLogHandler` instances send error messages to a Unix
syslog daemon,
possibly on a remote machine.
#. :class:`
handlers.NTEventLogHandler` instances send error messages to a Windows
NT/2000/XP event log.
#. :class:`
NTEventLogHandler` instances send error messages to a
Windows
NT/2000/XP event log.
#. :class:`
handlers.MemoryHandler` instances send error messages to a buffer in memory,
which is flushed whenever specific criteria are met.
#. :class:`
MemoryHandler` instances send error messages to a buffer
in memory,
which is flushed whenever specific criteria are met.
#. :class:`
handlers.HTTPHandler` instances send error messages to an HTTP server using
either ``GET`` or ``POST`` semantics.
#. :class:`
HTTPHandler` instances send error messages to an HTTP
server using
either ``GET`` or ``POST`` semantics.
#. :class:`
handlers.WatchedFileHandler` instances watch the file they are logging to. If
the file changes, it is closed and reopened using the file name. This handler
is only useful on Unix-like systems; Windows does not support the underlying
mechanism used.
#. :class:`
WatchedFileHandler` instances watch the file they are
logging to. If the file changes, it is closed and reopened using the file
name. This handler is only useful on Unix-like systems; Windows does not
support the underlying
mechanism used.
#. :class:`NullHandler` instances do nothing with error messages. They are used
by library developers who want to use logging, but want to avoid the "No
...
...
@@ -602,6 +607,9 @@ The basic :class:`Filter` functionality allows filtering by specific logger
name. If this feature is used, messages sent to the named logger and its
children are allowed through the filter, and all others dropped.
Module-Level Functions
----------------------
In addition to the classes described above, there are a number of module- level
functions.
...
...
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