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
47ca122b
Commit
47ca122b
authored
Sep 27, 2010
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging: Updated library configuration documentation.
parent
176c73df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Doc/library/logging.rst
Doc/library/logging.rst
+18
-0
No files found.
Doc/library/logging.rst
View file @
47ca122b
...
...
@@ -530,6 +530,14 @@ should have the desired effect. If an organisation produces a number of
libraries
,
then
the
logger
name
specified
can
be
"orgname.foo"
rather
than
just
"foo"
.
**
PLEASE
NOTE
:**
It
is
strongly
advised
that
you
*
do
not
add
any
handlers
other
than
*
:
class
:`
NullHandler
`
*
to
your
library
's loggers*. This is because the
configuration of handlers is the prerogative of the application developer who
uses your library. The application developer knows their target audience and
what handlers are most appropriate for their application: if you add handlers
"under the hood", you might well interfere with their ability to carry out
unit tests and deliver logs which suit their requirements.
.. versionadded:: 2.7
The :class:`NullHandler` class was not present in previous versions, but is now
...
...
@@ -1957,6 +1965,16 @@ for use by library developers.
This method does nothing.
.. method:: handle(record)
This method does nothing.
.. method:: createLock()
This method returns `None` for the lock, since there is no
underlying I/O to which access needs to be serialized.
See :ref:`library-config` for more information on how to use
:class:`NullHandler`.
...
...
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