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
b0623d64
Kaydet (Commit)
b0623d64
authored
Mar 24, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
logging: Added LOG_FTP for SysLogHandler and updated documentation.
üst
f8d1d0f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
1 deletion
+76
-1
logging.rst
Doc/library/logging.rst
+71
-0
handlers.py
Lib/logging/handlers.py
+3
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
b0623d64
...
@@ -2071,6 +2071,77 @@ supports sending logging messages to a remote or local Unix syslog.
...
@@ -2071,6 +2071,77 @@ supports sending logging messages to a remote or local Unix syslog.
or integers - if strings are passed, internal mapping dictionaries are
or integers - if strings are passed, internal mapping dictionaries are
used to convert them to integers.
used to convert them to integers.
The symbolic ``LOG_`` values mirror the values defined in the
``sys/syslog.h`` header file.
+------------------------------------------+
| Priorities |
+--------------------------+---------------+
| Name (string) | Symbolic value|
+==========================+===============+
| ``alert`` | LOG_ALERT |
+--------------------------+---------------+
| ``crit`` or ``critical`` | LOG_CRIT |
+--------------------------+---------------+
| ``debug`` | LOG_DEBUG |
+--------------------------+---------------+
| ``emerg`` or ``panic`` | LOG_EMERG |
+--------------------------+---------------+
| ``err`` or ``error`` | LOG_ERR |
+--------------------------+---------------+
| ``info`` | LOG_INFO |
+--------------------------+---------------+
| ``notice`` | LOG_NOTICE |
+--------------------------+---------------+
| ``warn`` or ``warning`` | LOG_WARNING |
+--------------------------+---------------+
+-------------------------------+
| Facilities |
+---------------+---------------+
| Name (string) | Symbolic value|
+===============+===============+
| ``auth`` | LOG_AUTH |
+---------------+---------------+
| ``authpriv`` | LOG_AUTHPRIV |
+---------------+---------------+
| ``cron`` | LOG_CRON |
+---------------+---------------+
| ``daemon`` | LOG_DAEMON |
+---------------+---------------+
| ``ftp`` | LOG_FTP |
+---------------+---------------+
| ``kern`` | LOG_KERN |
+---------------+---------------+
| ``lpr`` | LOG_LPR |
+---------------+---------------+
| ``mail`` | LOG_MAIL |
+---------------+---------------+
| ``news`` | LOG_NEWS |
+---------------+---------------+
| ``syslog`` | LOG_SYSLOG |
+---------------+---------------+
| ``user`` | LOG_USER |
+---------------+---------------+
| ``uucp`` | LOG_UUCP |
+---------------+---------------+
| ``local0`` | LOG_LOCAL0 |
+---------------+---------------+
| ``local1`` | LOG_LOCAL1 |
+---------------+---------------+
| ``local2`` | LOG_LOCAL2 |
+---------------+---------------+
| ``local3`` | LOG_LOCAL3 |
+---------------+---------------+
| ``local4`` | LOG_LOCAL4 |
+---------------+---------------+
| ``local5`` | LOG_LOCAL5 |
+---------------+---------------+
| ``local6`` | LOG_LOCAL6 |
+---------------+---------------+
| ``local7`` | LOG_LOCAL7 |
+---------------+---------------+
.. _nt-eventlog-handler:
.. _nt-eventlog-handler:
...
...
Lib/logging/handlers.py
Dosyayı görüntüle @
b0623d64
...
@@ -638,7 +638,8 @@ class SysLogHandler(logging.Handler):
...
@@ -638,7 +638,8 @@ class SysLogHandler(logging.Handler):
LOG_NEWS
=
7
# network news subsystem
LOG_NEWS
=
7
# network news subsystem
LOG_UUCP
=
8
# UUCP subsystem
LOG_UUCP
=
8
# UUCP subsystem
LOG_CRON
=
9
# clock daemon
LOG_CRON
=
9
# clock daemon
LOG_AUTHPRIV
=
10
# security/authorization messages (private)
LOG_AUTHPRIV
=
10
# security/authorization messages (private)
LOG_FTP
=
11
# FTP daemon
# other codes through 15 reserved for system use
# other codes through 15 reserved for system use
LOG_LOCAL0
=
16
# reserved for local use
LOG_LOCAL0
=
16
# reserved for local use
...
@@ -670,6 +671,7 @@ class SysLogHandler(logging.Handler):
...
@@ -670,6 +671,7 @@ class SysLogHandler(logging.Handler):
"authpriv"
:
LOG_AUTHPRIV
,
"authpriv"
:
LOG_AUTHPRIV
,
"cron"
:
LOG_CRON
,
"cron"
:
LOG_CRON
,
"daemon"
:
LOG_DAEMON
,
"daemon"
:
LOG_DAEMON
,
"ftp"
:
LOG_FTP
,
"kern"
:
LOG_KERN
,
"kern"
:
LOG_KERN
,
"lpr"
:
LOG_LPR
,
"lpr"
:
LOG_LPR
,
"mail"
:
LOG_MAIL
,
"mail"
:
LOG_MAIL
,
...
...
Misc/NEWS
Dosyayı görüntüle @
b0623d64
...
@@ -29,6 +29,8 @@ Core and Builtins
...
@@ -29,6 +29,8 @@ Core and Builtins
Library
Library
-------
-------
- logging: Added LOG_FTP to SysLogHandler and updated documentation.
- Issue #8205: Remove the "Modules" directory from sys.path when Python is
- Issue #8205: Remove the "Modules" directory from sys.path when Python is
running from the build directory (POSIX only).
running from the build directory (POSIX only).
...
...
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