set_log_level
- ctranslate2.set_log_level(level: int)
Sets the CTranslate2 logging level from a Python logging level.
- Parameters
level – A Python logging level.
Example
>>> import logging >>> ctranslate2.set_log_level(logging.INFO)
Note
The argument is a Python logging level for convenience, but this function controls the C++ logs of the library.