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
b4bf62f8
Kaydet (Commit)
b4bf62f8
authored
Tem 21, 2004
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added an extra example to the basic example section
üst
0ad20f18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
liblogging.tex
Doc/lib/liblogging.tex
+21
-0
No files found.
Doc/lib/liblogging.tex
Dosyayı görüntüle @
b4bf62f8
...
@@ -470,6 +470,27 @@ to \function{basicConfig()} using the \var{stream} keyword argument. Note
...
@@ -470,6 +470,27 @@ to \function{basicConfig()} using the \var{stream} keyword argument. Note
that if both
\var
{
stream
}
and
\var
{
filename
}
keyword arguments are passed,
that if both
\var
{
stream
}
and
\var
{
filename
}
keyword arguments are passed,
the
\var
{
stream
}
argument is ignored.
the
\var
{
stream
}
argument is ignored.
Of course, you can put variable information in your output. To do this,
simply have the message be a format string and pass in additional arguments
containing the variable information, as in the following example:
\begin{verbatim}
import logging
logging.basicConfig(level=logging.DEBUG,
format='
%(asctime)s %(levelname)-8s %(message)s',
datefmt='
%a, %d %b %Y %H:%M:%S',
filename='/temp/myapp.log',
filemode='w')
logging.error('Pack my box with
%d dozen %s', 12, 'liquor jugs')
\end{verbatim}
which would result in
\begin{verbatim}
Wed, 21 Jul 2004 15:35:16 ERROR Pack my box with 12 dozen liquor jugs
\end{verbatim}
\subsection
{
Handler Objects
}
\subsection
{
Handler Objects
}
Handlers have the following attributes and methods. Note that
Handlers have the following attributes and methods. Note that
...
...
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