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
2d6fe256
Kaydet (Commit)
2d6fe256
authored
Mar 31, 2005
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor changes to imports
üst
d7937f0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
config.py
Lib/logging/config.py
+8
-3
No files found.
Lib/logging/config.py
Dosyayı görüntüle @
2d6fe256
# Copyright 2001-200
4
by Vinay Sajip. All Rights Reserved.
# Copyright 2001-200
5
by Vinay Sajip. All Rights Reserved.
#
#
# Permission to use, copy, modify, and distribute this software and its
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted,
# documentation for any purpose and without fee is hereby granted,
...
@@ -27,7 +27,13 @@ Copyright (C) 2001-2004 Vinay Sajip. All Rights Reserved.
...
@@ -27,7 +27,13 @@ Copyright (C) 2001-2004 Vinay Sajip. All Rights Reserved.
To use, simply 'import logging' and log away!
To use, simply 'import logging' and log away!
"""
"""
import
sys
,
logging
,
logging
.
handlers
,
string
,
thread
,
threading
,
socket
,
struct
,
os
import
sys
,
logging
,
logging
.
handlers
,
string
,
socket
,
struct
,
os
,
traceback
try
:
import
thread
import
threading
except
ImportError
:
thread
=
None
from
SocketServer
import
ThreadingTCPServer
,
StreamRequestHandler
from
SocketServer
import
ThreadingTCPServer
,
StreamRequestHandler
...
@@ -189,7 +195,6 @@ def fileConfig(fname, defaults=None):
...
@@ -189,7 +195,6 @@ def fileConfig(fname, defaults=None):
for
log
in
existing
:
for
log
in
existing
:
root
.
manager
.
loggerDict
[
log
]
.
disabled
=
1
root
.
manager
.
loggerDict
[
log
]
.
disabled
=
1
except
:
except
:
import
traceback
ei
=
sys
.
exc_info
()
ei
=
sys
.
exc_info
()
traceback
.
print_exception
(
ei
[
0
],
ei
[
1
],
ei
[
2
],
None
,
sys
.
stderr
)
traceback
.
print_exception
(
ei
[
0
],
ei
[
1
],
ei
[
2
],
None
,
sys
.
stderr
)
del
ei
del
ei
...
...
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