Unverified Commit 86b40073 authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

[doc] post-porting (#14890)

found a few oddities:

1. https://huggingface.co/docs/transformers/main_classes/logging#transformers.utils.logging.enable_explicit_format
has a :: - this PR fixes it

2.  this looks borked too:
https://huggingface.co/docs/transformers/main_classes/logging#transformers.utils.logging.set_verbosity
 has a <

but I'm not sure where this one is coming from
parent ee55ea69
...@@ -240,11 +240,9 @@ def enable_propagation() -> None: ...@@ -240,11 +240,9 @@ def enable_propagation() -> None:
def enable_explicit_format() -> None: def enable_explicit_format() -> None:
""" """
Enable explicit formatting for every HuggingFace Transformers's logger. The explicit formatter is as follows: Enable explicit formatting for every HuggingFace Transformers's logger. The explicit formatter is as follows:
```
::
[LEVELNAME|FILENAME|LINE NUMBER] TIME >> MESSAGE [LEVELNAME|FILENAME|LINE NUMBER] TIME >> MESSAGE
```
All handlers currently bound to the root logger are affected by this method. All handlers currently bound to the root logger are affected by this method.
""" """
handlers = _get_library_root_logger().handlers handlers = _get_library_root_logger().handlers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment