Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bfd463c5
Commit
bfd463c5
authored
Apr 08, 2011
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Merged doc fix in 3.2.
parents
d08b330a
c46102c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Doc/library/logging.rst
Doc/library/logging.rst
+9
-2
No files found.
Doc/library/logging.rst
View file @
bfd463c5
...
...
@@ -405,7 +405,7 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
:
ref
:`
logrecord
-
attributes
`.
..
class
::
Formatter
(
fmt
=
None
,
datefmt
=
None
)
..
class
::
Formatter
(
fmt
=
None
,
datefmt
=
None
,
style
=
'%'
)
Returns
a
new
instance
of
the
:
class
:`
Formatter
`
class
.
The
instance
is
initialized
with
a
format
string
for
the
message
as
a
whole
,
as
well
as
a
...
...
@@ -413,6 +413,14 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
specified
,
``
'%(message)s'
``
is
used
.
If
no
*
datefmt
*
is
specified
,
the
ISO8601
date
format
is
used
.
The
*
style
*
parameter
can
be
one
of
'%'
,
'{'
or
'$'
and
determines
how
the
format
string
will
be
merged
with
its
data
:
using
one
of
%-
formatting
,
:
meth
:`
str
.
format
`
or
:
class
:`
string
.
Template
`.
..
versionchanged
::
3.2
The
*
style
*
parameter
was
added
.
..
method
::
format
(
record
)
The
record
's attribute dictionary is used as the operand to a string
...
...
@@ -691,7 +699,6 @@ LoggerAdapter Objects
information
into
logging
calls
.
For
a
usage
example
,
see
the
section
on
:
ref
:`
adding
contextual
information
to
your
logging
output
<
context
-
info
>`.
..
class
::
LoggerAdapter
(
logger
,
extra
)
Returns
an
instance
of
:
class
:`
LoggerAdapter
`
initialized
with
an
...
...
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