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
7f536b03
Kaydet (Commit)
7f536b03
authored
Eyl 12, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #9827: clarified LogRecord documentation a little more.
üst
2b65fc8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
16 deletions
+47
-16
logging.rst
Doc/library/logging.rst
+47
-16
No files found.
Doc/library/logging.rst
Dosyayı görüntüle @
7f536b03
...
...
@@ -2550,27 +2550,58 @@ been applied to those descendant loggers.
LogRecord
Objects
-----------------
:
class
:`
LogRecord
`
instances
are
created
every
time
something
is
logged
.
They
contain
all
the
information
pertinent
to
the
event
being
logged
.
The
main
information
passed
in
is
in
msg
and
args
,
which
are
combined
using
msg
%
args
to
create
the
message
field
of
the
record
.
The
record
also
includes
information
such
as
when
the
record
was
created
,
the
source
line
where
the
logging
call
was
made
,
and
any
exception
information
to
be
logged
.
:
class
:`
LogRecord
`
instances
are
created
automatically
by
the
:
class
:`
Logger
`
every
time
something
is
logged
,
and
can
be
created
manually
via
:
func
:`
makeLogRecord
`
(
for
example
,
from
a
pickled
event
received
over
the
wire
).
..
class
::
LogRecord
(
name
,
lvl
,
pathname
,
lineno
,
msg
,
args
,
exc_info
,
func
=
None
)
Returns
an
instance
of
:
class
:`
LogRecord
`
initialized
with
interesting
information
.
The
*
name
*
is
the
logger
name
;
*
lvl
*
is
the
numeric
level
;
*
pathname
*
is
the
absolute
pathname
of
the
source
file
in
which
the
logging
call
was
made
;
*
lineno
*
is
the
line
number
in
that
file
where
the
logging
call
is
found
;
*
msg
*
is
the
user
-
supplied
message
(
a
format
string
);
*
args
*
is
the
tuple
which
,
together
with
*
msg
*,
makes
up
the
user
message
;
and
*
exc_info
*
is
the
exception
tuple
obtained
by
calling
:
func
:`
sys
.
exc_info
`
(
or
:
const
:`
None
`,
if
no
exception
information
is
available
).
The
*
func
*
is
the
name
of
the
function
from
which
the
logging
call
was
made
.
If
not
specified
,
it
defaults
to
``
None
``.
Contains
all
the
information
pertinent
to
the
event
being
logged
.
The
primary
information
is
passed
in
:
attr
:`
msg
`
and
:
attr
:`
args
`,
which
are
combined
using
``
msg
%
args
``
to
create
the
:
attr
:`
message
`
field
of
the
record
.
..
attribute
::
args
Tuple
of
arguments
to
be
used
in
formatting
:
attr
:`
msg
`.
..
attribute
::
exc_info
Exception
tuple
(
à
la
`
sys
.
exc_info
`)
or
`
None
`
if
no
exception
information
is
availble
.
..
attribute
::
func
Name
of
the
function
of
origin
(
i
.
e
.
in
which
the
logging
call
was
made
).
..
attribute
::
lineno
Line
number
in
the
source
file
of
origin
.
..
attribute
::
lvl
Numeric
logging
level
.
..
attribute
::
message
Bound
to
the
result
of
:
meth
:`
getMessage
`
when
:
meth
:`
Formatter
.
format
(
record
)<
Formatter
.
format
>`
is
invoked
.
..
attribute
::
msg
User
-
supplied
:
ref
:`
format
string
<
string
-
formatting
>`
or
arbitrary
object
(
see
:
ref
:`
arbitrary
-
object
-
messages
`)
used
in
:
meth
:`
getMessage
`.
..
attribute
::
name
Name
of
the
logger
that
emitted
the
record
.
..
attribute
::
pathname
Absolute
pathname
of
the
source
file
of
origin
.
..
method
::
getMessage
()
...
...
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