-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate Python documentation, for 1.7.3.4.
- Loading branch information
Huon Wilson
authored and
Huon Wilson
committed
Aug 17, 2018
1 parent
dec76ad
commit 2e424ef
Showing
50 changed files
with
13,574 additions
and
1,093 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ Contents: | |
|
||
Quickstart <quickstart> | ||
API Reference <api> | ||
Logging <logging> | ||
|
||
|
||
Indices and tables | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Configuring Logging for NMSLIB | ||
============================== | ||
|
||
This library logs to a Python logger named ``nmslib``. This lets | ||
you fully control the log messages produced by nmslib in Python. | ||
|
||
For instance, to log everything produced by nmslib to a default | ||
python logger: | ||
|
||
.. code-block:: python | ||
# setup basic python logging | ||
import logging | ||
logging.basicConfig(level=logging.DEBUG) | ||
# importing nmslib logs some debug messages on startup, that | ||
# that will be output to the python log handler created above | ||
import nmslib | ||
To quiet these messages you can just set the level for nmslib | ||
as appropiate: | ||
|
||
.. code-block:: python | ||
# setup basic python logging | ||
import logging | ||
logging.basicConfig(level=logging.DEBUG) | ||
# Only log WARNING messages and above from nmslib | ||
logging.getLogger('nmslib').setLevel(logging.WARNING) | ||
import nmslib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.