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
5e3b2dfe
Kaydet (Commit)
5e3b2dfe
authored
Ock 23, 2015
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23305: clarified RotatingFileHandler documentation.
üst
6e3c3c3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
logging.handlers.rst
Doc/library/logging.handlers.rst
+10
-9
No files found.
Doc/library/logging.handlers.rst
Dosyayı görüntüle @
5e3b2dfe
...
@@ -185,15 +185,16 @@ module, supports rotation of disk log files.
...
@@ -185,15 +185,16 @@ module, supports rotation of disk log files.
You can use the *maxBytes* and *backupCount* values to allow the file to
You can use the *maxBytes* and *backupCount* values to allow the file to
:dfn:`rollover` at a predetermined size. When the size is about to be exceeded,
:dfn:`rollover` at a predetermined size. When the size is about to be exceeded,
the file is closed and a new file is silently opened for output. Rollover occurs
the file is closed and a new file is silently opened for output. Rollover occurs
whenever the current log file is nearly *maxBytes* in length; if *maxBytes* is
whenever the current log file is nearly *maxBytes* in length; if either of
zero, rollover never occurs. If *backupCount* is non-zero, the system will save
*maxBytes* or *backupCount* is zero, rollover never occurs. If *backupCount*
old log files by appending the extensions '.1', '.2' etc., to the filename. For
is non-zero, the system will save old log files by appending the extensions
example, with a *backupCount* of 5 and a base file name of :file:`app.log`, you
'.1', '.2' etc., to the filename. For example, with a *backupCount* of 5 and
would get :file:`app.log`, :file:`app.log.1`, :file:`app.log.2`, up to
a base file name of :file:`app.log`, you would get :file:`app.log`,
:file:`app.log.5`. The file being written to is always :file:`app.log`. When
:file:`app.log.1`, :file:`app.log.2`, up to :file:`app.log.5`. The file being
this file is filled, it is closed and renamed to :file:`app.log.1`, and if files
written to is always :file:`app.log`. When this file is filled, it is closed
:file:`app.log.1`, :file:`app.log.2`, etc. exist, then they are renamed to
and renamed to :file:`app.log.1`, and if files :file:`app.log.1`,
:file:`app.log.2`, :file:`app.log.3` etc. respectively.
:file:`app.log.2`, etc. exist, then they are renamed to :file:`app.log.2`,
:file:`app.log.3` etc. respectively.
.. versionchanged:: 2.6
.. versionchanged:: 2.6
*delay* was added.
*delay* was added.
...
...
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