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
7a0afd3f
Kaydet (Commit)
7a0afd3f
authored
Şub 07, 2011
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Spelling fixes.
üst
2cb2fa97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
logging-cookbook.rst
Doc/howto/logging-cookbook.rst
+3
-3
No files found.
Doc/howto/logging-cookbook.rst
Dosyayı görüntüle @
7a0afd3f
...
@@ -697,7 +697,7 @@ The following example script demonstrates how you can do this; in the example
...
@@ -697,7 +697,7 @@ The following example script demonstrates how you can do this; in the example
a separate listener process listens for events sent by other processes and logs
a separate listener process listens for events sent by other processes and logs
them according to its own logging configuration. Although the example only
them according to its own logging configuration. Although the example only
demonstrates one way of doing it (for example, you may want to use a listener
demonstrates one way of doing it (for example, you may want to use a listener
thread rather than a separate listener process - the implementation would be
thread rather than a separate listener process -
-
the implementation would be
analogous) it does allow for completely different logging configurations for
analogous) it does allow for completely different logging configurations for
the listener and the other processes in your application, and can be used as
the listener and the other processes in your application, and can be used as
the basis for code meeting your own specific requirements::
the basis for code meeting your own specific requirements::
...
@@ -719,7 +719,7 @@ the basis for code meeting your own specific requirements::
...
@@ -719,7 +719,7 @@ the basis for code meeting your own specific requirements::
#
#
# In practice, you can configure the listener however you want, but note that in this
# In practice, you can configure the listener however you want, but note that in this
# simple example, the listener does not apply level or filter logic to received records.
# simple example, the listener does not apply level or filter logic to received records.
# In practice, you would probably want to do ths logic in the worker processes, to avoid
# In practice, you would probably want to do th
i
s logic in the worker processes, to avoid
# sending events which would be filtered out between processes.
# sending events which would be filtered out between processes.
#
#
# The size of the rotated files is made small so you can see the results easily.
# The size of the rotated files is made small so you can see the results easily.
...
@@ -918,7 +918,7 @@ Using file rotation
...
@@ -918,7 +918,7 @@ Using file rotation
Sometimes you want to let a log file grow to a certain size, then open a new
Sometimes you want to let a log file grow to a certain size, then open a new
file and log to that. You may want to keep a certain number of these files, and
file and log to that. You may want to keep a certain number of these files, and
when that many files have been created, rotate the files so that the number of
when that many files have been created, rotate the files so that the number of
files and the size of the files both remin bounded. For this usage pattern, the
files and the size of the files both rem
a
in bounded. For this usage pattern, the
logging package provides a :class:`RotatingFileHandler`::
logging package provides a :class:`RotatingFileHandler`::
import glob
import glob
...
...
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