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
fd94b173
Kaydet (Commit)
fd94b173
authored
Ara 13, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Logging documentation update.
üst
7292b884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
logging.rst
Doc/library/logging.rst
+5
-2
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
fd94b173
...
@@ -3600,13 +3600,16 @@ attribute names, their meanings and the corresponding placeholder in a %-style
...
@@ -3600,13 +3600,16 @@ attribute names, their meanings and the corresponding placeholder in a %-style
format string.
format string.
If you are using {}-formatting (:func:`str.format`), you can use
If you are using {}-formatting (:func:`str.format`), you can use
``{
{attrname}
}`` as the placeholder in the format string. If you are using
``{
attrname
}`` as the placeholder in the format string. If you are using
$-formatting (:class:`string.Template`), use the form ``${attrname}``. In
$-formatting (:class:`string.Template`), use the form ``${attrname}``. In
both cases, of course, replace ``attrname`` with the actual attribute name
both cases, of course, replace ``attrname`` with the actual attribute name
you want to use.
you want to use.
In the case of {}-formatting, you can specify formatting flags by placing them
In the case of {}-formatting, you can specify formatting flags by placing them
after the attribute name, separated from it with a colon.
after the attribute name, separated from it with a colon. For example: a
placeholder of ``{msecs:03d}`` would format a millisecond value of ``4`` as
``004``. Refer to the :meth:`str.format` documentation for full details on
the options available to you.
+----------------+-------------------------+-----------------------------------------------+
+----------------+-------------------------+-----------------------------------------------+
| Attribute name | Format | Description |
| Attribute name | Format | Description |
...
...
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