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
05ed6959
Kaydet (Commit)
05ed6959
authored
Eki 20, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
logging: Improved StreamHandler documentation.
üst
2a20dfc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
logging.rst
Doc/library/logging.rst
+13
-11
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
05ed6959
...
@@ -2100,6 +2100,11 @@ and :meth:`flush` methods).
...
@@ -2100,6 +2100,11 @@ and :meth:`flush` methods).
:meth:`close` method is inherited from :class:`Handler` and so does
:meth:`close` method is inherited from :class:`Handler` and so does
no output, so an explicit :meth:`flush` call may be needed at times.
no output, so an explicit :meth:`flush` call may be needed at times.
.. versionchanged:: 3.2
The ``StreamHandler`` class now has a ``terminator`` attribute, default
value ``"\n"``, which is used as the terminator when writing a formatted
record to a stream. If you don'
t
want
this
newline
termination
,
you
can
set
the
handler
instance
's ``terminator`` attribute to the empty string.
.. _file-handler:
.. _file-handler:
...
@@ -3072,14 +3077,14 @@ You don't actually need to subclass ``Filter``: you can pass any instance
...
@@ -3072,14 +3077,14 @@ You don't actually need to subclass ``Filter``: you can pass any instance
which has a ``filter`` method with the same semantics.
which has a ``filter`` method with the same semantics.
.. versionchanged:: 3.2
.. versionchanged:: 3.2
You don'
t
need
to
create
specialized
``
Filter
``
classes
,
or
use
other
You don'
t
need
to
create
specialized
``
Filter
``
classes
,
or
use
other
classes
classes
with
a
``
filter
``
method
:
you
can
use
a
function
(
or
other
with
a
``
filter
``
method
:
you
can
use
a
function
(
or
other
callable
)
as
a
callable
)
as
a
filter
.
The
filtering
logic
will
check
to
see
if
the
filter
filter
.
The
filtering
logic
will
check
to
see
if
the
filter
object
has
a
object
has
a
``
filter
``
attribute
:
if
it
does
,
it
's assumed to be
a
``
filter
``
attribute
:
if
it
does
,
it
's assumed to be a ``Filter`` and it
s
``Filter`` and its :meth:`~Filter.filter` method is called. Otherwise, it'
s
:meth:`~Filter.filter` method is called. Otherwise, it'
s
assumed
to
be
a
assumed
to
be
a
callable
and
called
with
the
record
as
the
single
callable
and
called
with
the
record
as
the
single
parameter
.
The
returned
parameter
.
The
returned
value
should
conform
to
that
returned
by
value
should
conform
to
that
returned
by
:
meth
:`~
Filter
.
filter
`.
:
meth
:`~
Filter
.
filter
`.
Other
uses
for
filters
Other
uses
for
filters
^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^
...
@@ -3160,9 +3165,6 @@ wire).
...
@@ -3160,9 +3165,6 @@ wire).
messages, whose ``__str__`` method can return the actual format string to
messages, whose ``__str__`` method can return the actual format string to
be used.
be used.
.. versionchanged:: 2.5
*func* was added.
.. _logger-adapter:
.. _logger-adapter:
LoggerAdapter Objects
LoggerAdapter Objects
...
...
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