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
83eadd14
Commit
83eadd14
authored
Sep 20, 2010
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging: hasHandlers additions documented.
parent
ae7d7fa0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
Doc/library/logging.rst
Doc/library/logging.rst
+12
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/logging.rst
View file @
83eadd14
...
...
@@ -1129,6 +1129,18 @@ instantiated directly, but always through the module-level function
This
is
a
factory
method
which
can
be
overridden
in
subclasses
to
create
specialized
:
class
:`
LogRecord
`
instances
.
..
method
::
Logger
.
hasHandlers
()
Checks
to
see
if
this
logger
has
any
handlers
configured
.
This
is
done
by
looking
for
handlers
in
this
logger
and
its
parents
in
the
logger
hierarchy
.
Returns
True
if
a
handler
was
found
,
else
False
.
The
method
stops
searching
up
the
hierarchy
whenever
a
logger
with
the
"propagate"
attribute
set
to
False
is
found
-
that
will
be
the
last
logger
which
is
checked
for
the
existence
of
handlers
.
..
versionadded
::
3.2
The
:
meth
:`
hasHandlers
`
method
was
not
present
in
previous
versions
.
..
_minimal
-
example
:
...
...
Misc/NEWS
View file @
83eadd14
...
...
@@ -55,6 +55,8 @@ Core and Builtins
Library
-------
- logging: Added hasHandlers() method to Logger and LoggerAdapter.
- Issue #1686: Fix string.Template when overriding the pattern attribute.
- Issue #9854: SocketIO objects now observe the RawIOBase interface in
...
...
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