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
4c1423bb
Kaydet (Commit)
4c1423bb
authored
Haz 05, 2005
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documentation clarified re. config socket listener protocol
üst
b6c1bb88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
liblogging.tex
Doc/lib/liblogging.tex
+4
-1
config.py
Lib/logging/config.py
+3
-3
No files found.
Doc/lib/liblogging.tex
Dosyayı görüntüle @
4c1423bb
...
@@ -1396,7 +1396,10 @@ configurations. If no port is specified, the module's default
...
@@ -1396,7 +1396,10 @@ configurations. If no port is specified, the module's default
will be sent as a file suitable for processing by
\function
{
fileConfig()
}
.
will be sent as a file suitable for processing by
\function
{
fileConfig()
}
.
Returns a
\class
{
Thread
}
instance on which you can call
\method
{
start()
}
Returns a
\class
{
Thread
}
instance on which you can call
\method
{
start()
}
to start the server, and which you can
\method
{
join()
}
when appropriate.
to start the server, and which you can
\method
{
join()
}
when appropriate.
To stop the server, call
\function
{
stopListening()
}
.
To stop the server, call
\function
{
stopListening()
}
. To send a configuration
to the socket, read in the configuration file and send it to the socket
as a string of bytes preceded by a four-byte length packed in binary using
struct.
\code
{
pack(">L", n)
}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
stopListening
}{}
\begin{funcdesc}
{
stopListening
}{}
...
...
Lib/logging/config.py
Dosyayı görüntüle @
4c1423bb
...
@@ -225,9 +225,9 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT):
...
@@ -225,9 +225,9 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT):
"""
"""
Handle a request.
Handle a request.
Each request is expected to be a 4-byte length,
Each request is expected to be a 4-byte length,
packed using
followed by the config file. Uses fileConfig() to do the
struct.pack(">L", n), followed by the config file.
grunt work.
Uses fileConfig() to do the
grunt work.
"""
"""
import
tempfile
import
tempfile
try
:
try
:
...
...
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