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
b2635b2f
Kaydet (Commit)
b2635b2f
authored
Eyl 24, 2004
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added log() function
üst
02dd994a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
__init__.py
Lib/logging/__init__.py
+8
-0
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
b2635b2f
...
@@ -1245,6 +1245,14 @@ def debug(msg, *args, **kwargs):
...
@@ -1245,6 +1245,14 @@ def debug(msg, *args, **kwargs):
basicConfig
()
basicConfig
()
apply
(
root
.
debug
,
(
msg
,)
+
args
,
kwargs
)
apply
(
root
.
debug
,
(
msg
,)
+
args
,
kwargs
)
def
log
(
level
,
msg
,
*
args
,
**
kwargs
):
"""
Log 'msg
%
args' with the integer severity 'level' on the root logger.
"""
if
len
(
root
.
handlers
)
==
0
:
basicConfig
()
apply
(
root
.
log
,
(
level
,
msg
)
+
args
,
kwargs
)
def
disable
(
level
):
def
disable
(
level
):
"""
"""
Disable all logging calls less severe than 'level'.
Disable all logging calls less severe than 'level'.
...
...
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