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
d30a381c
Commit
d30a381c
authored
Jan 06, 2015
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarified documentation for logging exception function/method.
parent
98233775
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Doc/library/logging.rst
Doc/library/logging.rst
+6
-4
No files found.
Doc/library/logging.rst
View file @
d30a381c
...
...
@@ -227,8 +227,9 @@ is the module's name in the Python package namespace.
..
method
::
Logger
.
exception
(
msg
,
*
args
,
**
kwargs
)
Logs
a
message
with
level
:
const
:`
ERROR
`
on
this
logger
.
The
arguments
are
interpreted
as
for
:
meth
:`
debug
`.
Exception
info
is
added
to
the
logging
message
.
This
method
should
only
be
called
from
an
exception
handler
.
interpreted
as
for
:
meth
:`
debug
`,
except
that
any
passed
*
exc_info
*
is
not
inspected
.
Exception
info
is
always
added
to
the
logging
message
.
This
method
should
only
be
called
from
an
exception
handler
.
..
method
::
Logger
.
addFilter
(
filt
)
...
...
@@ -845,8 +846,9 @@ functions.
..
function
::
exception
(
msg
[,
*
args
[,
**
kwargs
]])
Logs
a
message
with
level
:
const
:`
ERROR
`
on
the
root
logger
.
The
arguments
are
interpreted
as
for
:
func
:`
debug
`.
Exception
info
is
added
to
the
logging
message
.
This
function
should
only
be
called
from
an
exception
handler
.
interpreted
as
for
:
func
:`
debug
`,
except
that
any
passed
*
exc_info
*
is
not
inspected
.
Exception
info
is
always
added
to
the
logging
message
.
This
function
should
only
be
called
from
an
exception
handler
.
..
function
::
log
(
level
,
msg
[,
*
args
[,
**
kwargs
]])
...
...
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