-
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.
Merge pull request #345 from huonw/python-docs
Fix minor documentation problem and regenerate Python documentation.
- Loading branch information
Showing
51 changed files
with
13,575 additions
and
1,094 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.