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
59b9a79a
Kaydet (Commit)
59b9a79a
authored
Nis 16, 2012
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Tweaked format of cookbook example.
üst
b00e8f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
logging-cookbook.rst
Doc/howto/logging-cookbook.rst
+5
-5
No files found.
Doc/howto/logging-cookbook.rst
Dosyayı görüntüle @
59b9a79a
...
@@ -1570,10 +1570,10 @@ UTF-8, then you need to do the following:
...
@@ -1570,10 +1570,10 @@ UTF-8, then you need to do the following:
:class:`~logging.handlers.SysLogHandler` instance, with a format string
:class:`~logging.handlers.SysLogHandler` instance, with a format string
such as::
such as::
u"ASCII section\ufeffUnicode section"
'ASCII section\ufeffUnicode section'
The Unicode code point ``
u
'\feff```, when encoded using UTF-8, will be
The Unicode code point ``'\feff```, when encoded using UTF-8, will be
encoded as a UTF-8 BOM -- the byte
string ``'\xef\xbb\
bf'``.
encoded as a UTF-8 BOM -- the byte
-string ``b'\xef\xbb\x
bf'``.
#. Replace the ASCII section with whatever placeholders you like, but make sure
#. Replace the ASCII section with whatever placeholders you like, but make sure
that the data that appears in there after substitution is always ASCII (that
that the data that appears in there after substitution is always ASCII (that
...
@@ -1583,8 +1583,8 @@ UTF-8, then you need to do the following:
...
@@ -1583,8 +1583,8 @@ UTF-8, then you need to do the following:
which appears there after substitution is Unicode, that's fine -- it will be
which appears there after substitution is Unicode, that's fine -- it will be
encoded using UTF-8.
encoded using UTF-8.
If the formatted message is Unicode, it *will* be encoded using UTF-8 encoding
The formatted message *will* be encoded using UTF-8 encoding by
by ``SysLogHandler``. If you follow thes
e rules, you should be able to produce
``SysLogHandler``. If you follow the abov
e rules, you should be able to produce
RFC 5424-compliant messages. If you don't, logging may not complain, but your
RFC 5424-compliant messages. If you don't, logging may not complain, but your
messages will not be RFC 5424-compliant, and your syslog daemon may complain.
messages will not be RFC 5424-compliant, and your syslog daemon may complain.
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