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
4f0f9f06
Commit
4f0f9f06
authored
Sep 09, 2019
by
David Röthlisberger
Committed by
Vinay Sajip
Sep 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging.Formatter docs: Add missing `validate` parameter, clarify `style` parameter (GH-15222)
parent
9d607061
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Doc/library/logging.rst
Doc/library/logging.rst
+6
-3
No files found.
Doc/library/logging.rst
View file @
4f0f9f06
...
...
@@ -528,7 +528,7 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
:
ref
:`
logrecord
-
attributes
`.
..
class
::
Formatter
(
fmt
=
None
,
datefmt
=
None
,
style
=
'%'
)
..
class
::
Formatter
(
fmt
=
None
,
datefmt
=
None
,
style
=
'%'
,
validate
=
True
)
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
...
...
@@ -538,8 +538,11 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
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
`.
See
:
ref
:`
formatting
-
styles
`
for
more
information
on
using
{-
and
$-
formatting
for
log
messages
.
:
meth
:`
str
.
format
`
or
:
class
:`
string
.
Template
`.
This
only
applies
to
the
format
string
*
fmt
*
(
e
.
g
.
``
'%(message)s'
``
or
``{
message
}``),
not
to
the
actual
log
messages
passed
to
``
Logger
.
debug
``
etc
;
see
:
ref
:`
formatting
-
styles
`
for
more
information
on
using
{-
and
$-
formatting
for
log
messages
.
..
versionchanged
::
3.2
The
*
style
*
parameter
was
added
.
...
...
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