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
e7dbebba
Kaydet (Commit)
e7dbebba
authored
Haz 04, 2009
tarafından
Eric Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor documentation fixes for logging.
üst
5000b3b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
logging.rst
Doc/library/logging.rst
+2
-2
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
e7dbebba
...
@@ -69,7 +69,7 @@ message::
...
@@ -69,7 +69,7 @@ message::
DEBUG:root:This message should go to the log file
DEBUG:root:This message should go to the log file
If you run the script repeatedly, the additional log messages are appended to
If you run the script repeatedly, the additional log messages are appended to
the file. To create a new file each time, you can pass a
filemode
argument to
the file. To create a new file each time, you can pass a
*filemode*
argument to
:func:`basicConfig` with a value of ``'
w
'``. Rather than managing the file size
:func:`basicConfig` with a value of ``'
w
'``. Rather than managing the file size
yourself, though, it is simpler to use a :class:`RotatingFileHandler`::
yourself, though, it is simpler to use a :class:`RotatingFileHandler`::
...
@@ -112,7 +112,7 @@ application::
...
@@ -112,7 +112,7 @@ application::
The most current file is always :file:`/tmp/logging_rotatingfile_example.out`,
The most current file is always :file:`/tmp/logging_rotatingfile_example.out`,
and each time it reaches the size limit it is renamed with the suffix
and each time it reaches the size limit it is renamed with the suffix
``.1``. Each of the existing backup files is renamed to increment the suffix
``.1``. Each of the existing backup files is renamed to increment the suffix
(``.1`` becomes ``.2``, etc.) and the ``.
5
`` file is erased.
(``.1`` becomes ``.2``, etc.) and the ``.
6
`` file is erased.
Obviously this example sets the log length much much too small as an extreme
Obviously this example sets the log length much much too small as an extreme
example. You would want to set *maxBytes* to an appropriate value.
example. You would want to set *maxBytes* to an appropriate value.
...
...
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