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
d0630498
Commit
d0630498
authored
Sep 11, 2016
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Closed #26533: Merged update from 3.5.
parents
eb5b6479
3d639b2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
Doc/library/logging.config.rst
Doc/library/logging.config.rst
+14
-5
No files found.
Doc/library/logging.config.rst
View file @
d0630498
...
@@ -126,10 +126,10 @@ in :mod:`logging` itself) and defining handlers which are declared either in
...
@@ -126,10 +126,10 @@ in :mod:`logging` itself) and defining handlers which are declared either in
Starts
up
a
socket
server
on
the
specified
port
,
and
listens
for
new
Starts
up
a
socket
server
on
the
specified
port
,
and
listens
for
new
configurations
.
If
no
port
is
specified
,
the
module
's default
configurations
.
If
no
port
is
specified
,
the
module
's default
:const:`DEFAULT_LOGGING_CONFIG_PORT` is used. Logging configurations will be
:const:`DEFAULT_LOGGING_CONFIG_PORT` is used. Logging configurations will be
sent as a file suitable for processing by :func:`
fileConfig`. Returns a
sent as a file suitable for processing by :func:`
dictConfig` or
:
class:`~threading.Thread` instance on which you can call
:
func:`fileConfig`. Returns a :class:`~threading.Thread` instance on which
:meth:`~threading.Thread.start` to start the server, and which you can
you can call :meth:`~threading.Thread.start` to start the server, and which
:meth:`~threading.Thread.join` when appropriate. To stop the server,
you can
:meth:`~threading.Thread.join` when appropriate. To stop the server,
call :func:`stopListening`.
call :func:`stopListening`.
The ``verify`` argument, if specified, should be a callable which should
The ``verify`` argument, if specified, should be a callable which should
...
@@ -165,9 +165,18 @@ in :mod:`logging` itself) and defining handlers which are declared either in
...
@@ -165,9 +165,18 @@ in :mod:`logging` itself) and defining handlers which are declared either in
``
verify
``
argument
to
:
func
:`
listen
`
to
prevent
unrecognised
``
verify
``
argument
to
:
func
:`
listen
`
to
prevent
unrecognised
configurations
from
being
applied
.
configurations
from
being
applied
.
..
versionchanged
::
3.4
.
..
versionchanged
::
3.4
The
``
verify
``
argument
was
added
.
The
``
verify
``
argument
was
added
.
..
note
::
If
you
want
to
send
configurations
to
the
listener
which
don
't
disable existing loggers, you will need to use a JSON format for
the configuration, which will use :func:`dictConfig` for configuration.
This method allows you to specify ``disable_existing_loggers`` as
``False`` in the configuration you send.
.. function:: stopListening()
.. function:: stopListening()
Stops the listening server which was created with a call to :func:`listen`.
Stops the listening server which was created with a call to :func:`listen`.
...
...
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