forked from huggingface/evaluate
-
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.
[logging] Add centralized logging - Bump-up cache loads to warnings (h…
…uggingface#538) * add centralized logging - Bump-up cache loads to warnings * add logging in the doc * fix following Q's comments
- Loading branch information
Showing
3 changed files
with
52 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Logging methods | ||
---------------------------------------------------- | ||
|
||
`nlp` tries to be very transparent and explicit about it's inner working bt this can be quite verbose at some time. | ||
A series of logging methods let you easily adjust the level of logging of the whole library. | ||
|
||
Functions | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autofunction:: nlp.logging.get_verbosity | ||
|
||
.. autofunction:: nlp.logging.set_verbosity | ||
|
||
.. autofunction:: nlp.logging.set_verbosity_info | ||
|
||
.. autofunction:: nlp.logging.set_verbosity_warning | ||
|
||
.. autofunction:: nlp.logging.set_verbosity_debug | ||
|
||
.. autofunction:: nlp.logging.set_verbosity_error | ||
|
||
.. autofunction:: nlp.logging.disable_default_handler | ||
|
||
.. autofunction:: nlp.logging.enable_default_handler | ||
|
||
.. autofunction:: nlp.logging.disable_propagation | ||
|
||
.. autofunction:: nlp.logging.enable_propagation | ||
|
||
.. autofunction:: nlp.logging.get_logger | ||
|
||
Levels | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autodata:: nlp.logging.CRITICAL | ||
|
||
.. autodata:: nlp.logging.DEBUG | ||
|
||
.. autodata:: nlp.logging.ERROR | ||
|
||
.. autodata:: nlp.logging.FATAL | ||
|
||
.. autodata:: nlp.logging.INFO | ||
|
||
.. autodata:: nlp.logging.NOTSET | ||
|
||
.. autodata:: nlp.logging.WARN | ||
|
||
.. autodata:: nlp.logging.WARNING | ||
|
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